ui icon indicating copy to clipboard operation
ui copied to clipboard

chore: make `area-chart-interactive` chart data dynamic

Open kevinmitch14 opened this issue 1 year ago • 3 comments

Current chart data for the area chart interactive example uses hardcoded dates, which over time have become outdated. This has led to an empty chart being displayed at https://ui.shadcn.com/charts.

Screenshot 2024-10-25 at 09 59 51

This PR dynamically adjusts the dates starting from today: new Date() and subtracts one day for every entry in the original chartData const.

Screenshot 2024-10-25 at 10 20 50

This will ensure that the chartData used for these interactive area charts will always be 'up to date'

kevinmitch14 avatar Oct 25 '24 13:10 kevinmitch14

@kevinmitch14 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 25 '24 13:10 vercel[bot]

Looks like this was updated in https://github.com/shadcn-ui/ui/commit/c7cd16a637d0167f3fe5e4293e9c40f430f4b8bb

kevinmitch14 avatar Nov 11 '24 12:11 kevinmitch14

This PR has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this PR is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)

shadcn avatar Nov 11 '25 23:11 shadcn

This PR has been automatically closed due to one year of inactivity. Thank you for your understanding! (This is an automated message)

shadcn avatar Nov 19 '25 23:11 shadcn