DonutChart
A pie with the middle cut out, so the labels have room.
Click a mark to pin its value
Organic 46Direct 24Referral 18Paid 12
View data
| Label | Value |
|---|---|
| Organic | 46 |
| Direct | 24 |
| Referral | 18 |
| Paid | 12 |
<DonutChart title="Traffic sources" 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.