Pie Chart
Show proportions of a single total when slice share matters more than precise comparison.
Configure slice values, optional labels, and radii on PieChart. Arc labels and highlight behavior are controlled on the series and arc_label props — not ad-hoc CSS.
- Market share, budget allocation, or status breakdowns with few segments (≤7).
- Donut layouts with a center KPI when the hole can host a summary metric.
- Highlight-on-hover when users explore slice contribution interactively.
- Bind a
Datasetwithlabel_fieldandvalue_field, or pass inlineseries+ category labels onx_axis. - Set
inner_radiusfor donut charts; usechildrenfor centered overlay text. - Tune
arc_labelfor formatted values; link tocharts-labelfor location-aware formatters. - Leave
skip_animationunset to honor reduced-motion; arc sweep runs on enter otherwise. - Wrap the chart in a native element with
data-testidfor E2E hooks.
Four-slice pie with formatted arc labels. min_angle hides labels on thin slices so text does not collide — start here for standard share breakdowns.
Donut layout with inner_radius and padding_angle between slices. Use when a center KPI or icon will sit in the hole, or when thin slices need visual separation.
Donut with centered overlay text in the hole via children. Pair with inner_radius around 50–60% so the label has room without crowding arc labels.
highlight_scope fades non-hovered slices — see charts-highlighting for axis crosshair patterns on cartesian charts.