Bar chart
Compares values across categories: grouped, stacked or horizontal.
In use
Deploys
This week
Variants
Data alternative
| Day | Deploys | Rollbacks |
|---|---|---|
| Mon | 14 | 1 |
| Tue | 22 | 2 |
| Wed | 19 | 0 |
| Thu | 24 | 3 |
| Fri | 11 | 1 |
| Sat | 3 | 0 |
| Sun | 2 | 0 |
| Total | 95 | 7 |
Errors by service: gateway 412, worker 268, auth 96, billing 74, search 31.
Code
<ChartContainer config={{ deploys: { label: "Deploys" } }} label="Deploys per weekday">
<BarChart data={data}>
<CartesianGrid vertical={false} />
<XAxis dataKey="day" tickLine={false} axisLine={false} />
<ChartTooltip />
<Bar isAnimationActive={false} dataKey="deploys" fill={chartVar("deploys")} radius={[4, 4, 0, 0]} />
</BarChart>
</ChartContainer>