BarChart
Compare one value across a handful of categories.
Click a mark to pin its value
View data
| Label | Value |
|---|---|
| Jan | 32 |
| Feb | 46 |
| Mar | 63 |
| Apr | 58 |
| May | 71 |
| Jun | 84 |
<BarChart title="Revenue by month" data={data} />Usage
Data
data takes { label: string; value: number; color?: string }[]. Input arrays are never mutated and order is preserved.
- Order is preserved. Negative values are allowed.
- Set
coloron a datum to override a single bar.
Every chart also accepts the common props: description, height, color, variant, animate, formatValue and className.