Chart

BarChart

Grouped or stacked bars.

Preview

Import

ts
import { BarChart } from '@gautham/design-system/charts'

Usage

tsx
<BarChart data={data} xKey="env" yKeys={["up", "degraded", "down"]} stacked />

Renderer: SVG (Recharts)

When not to use

Comparing a small number of categories. For many categories, consider a horizontal bar or a line chart.