Chart

PieChart

Pie or donut. Default is donut.

Preview

Import

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

Usage

tsx
<PieChart data={data} />

Renderer: SVG (Recharts)

When not to use

Only for 2–6 categories that sum to a meaningful whole. More than 6: use a bar chart.