PieChart
Share of a whole, best with three to five slices.
Click a mark to pin its value
Desktop 54Mobile 33Tablet 13
View data
| Label | Value |
|---|---|
| Desktop | 54 |
| Mobile | 33 |
| Tablet | 13 |
<PieChart title="Devices" data={data} />Usage
Data
data takes { label: string; value: number; color?: string }[]. Input arrays are never mutated and order is preserved.
- Values must be non-negative.
- Takes
colors, or acoloron each datum.
Every chart also accepts the common props: description, height, color, variant, animate, formatValue and className.