PieChart
Chart
Proportional composition as arc slices in the chart-1..chart-8 token colors, with a percent legend. donut centers the total (or the selected slice while inspecting); pressing a slice dims the others.
Playground
Every control sets a real prop of PieChartProps. The JSX below updates as you go.
Web
iOS
Android
JSX · PieChartProps
Variants
1 examples from src/charts/pie-chart/pie-chart.md, each rendered live from its own JSX.
Anatomy
1
Chart frame
2
Slice
3
Center value
4
Legend
Dimmed parts appear only in some states or variants.
Props
11 props on PieChartProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
Roles
image
ARIA on web
aria-label
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--c2
--c3
--c4
--fd
--ft
--ln
--sf
--sh-sm
--tx
--tx2
--tx3