Compare values across categories, grouped or stacked.
Revenue by stream
Grouped, January to June
| month | Subscriptions | Services |
|---|---|---|
| Jan | $18,400 | $6,200 |
| Feb | $19,800 | $5,400 |
| Mar | $21,300 | $7,900 |
| Apr | $22,900 | $6,800 |
| May | $24,100 | $8,600 |
| Jun | $26,700 | $9,100 |
Total revenue
Stacked — hover or use arrow keys for the breakdown
| month | Subscriptions | Services |
|---|---|---|
| Jan | $18,400 | $6,200 |
| Feb | $19,800 | $5,400 |
| Mar | $21,300 | $7,900 |
| Apr | $22,900 | $6,800 |
| May | $24,100 | $8,600 |
| Jun | $26,700 | $9,100 |
Installation
pnpm add krz-uiUsage
import { BarChart } from "krz-ui";<BarChart
data={[{ month: "Jan", online: 120, retail: 80 }, { month: "Feb", online: 150, retail: 95 }]}
index="month"
series={["online", "retail"]}
stacked
/>