BarChart
CHARTSVertical bar chart powered by Recharts with theme-aware colors.
[EXAMPLES]
Basic
[PROPS]
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| data | Record<string, string | number>[] | — | Chart data points |
| xAxisKey | string | — | Key in data used for the X axis |
| series | { dataKey: string; name?: string; color?: string }[] | — | Bar series configuration |
| height | number | 300 | Chart height in pixels |
| horizontal | boolean | false | Horizontal bars |
| colorByIndex | boolean | false | Different color per bar |
| showLegend | boolean | false | Show chart legend |
| showGrid | boolean | true | Show grid lines |
[ACCESSIBILITY]
ARIA
- >SVG chart with aria-label
- >Data also available in alt text