Chart
Charts built on Recharts. Series colors come from the --chart-1 to --chart-5 tokens.
components/ui/chart.tsx
Preview
Code
Installation
npx betterone-ds add chartProps
| Component | Prop | Type | Default |
|---|---|---|---|
| ChartContainer | config | ChartConfig | required |
| ChartTooltipContent | indicator |
Accessibility
- Do not rely on color alone. Add labels or a legend.
- Provide the underlying numbers in a table for screen reader users.

