Replies: 3 comments 1 reply
-
It should work without |
Beta Was this translation helpful? Give feedback.
-
Remove the "satisfies ChartConfig" as well as the import of ChartConfig component from @/components/ui/chart ie. |
Beta Was this translation helpful? Give feedback.
-
hello guys, thank you for your answers. Actually , we made it works , it looks like my colleague forgot to rename her files js in jsx . |
Beta Was this translation helpful? Give feedback.
-
hi, we are currently tryng to use shadcn/charts on a non-typescrit projects ( just nextJS) and we have some troubles when tryng to display charts :
here is a example :
const chartConfig = {
desktop: {
label: "Desktop",
color: "#2563eb",
},
mobile: {
label: "Mobile",
color: "#60a5fa",
},
} satisfies ChartConfig
the satisfies Chartconfig is marked down as an error in our IDE . It seems to be adapted to typescript.
if we remove this, charts does not show .
How can we fix this ?
Beta Was this translation helpful? Give feedback.
All reactions