What it does
Renders proportional slices with shared tooltip and legend wiring.
Use the same appearance and density tokens as the other Zentauri charts.
Data shape
Each row should include a label field and a numeric value field. Pass those keys through `nameKey` and `dataKey`.
Common use cases
- Traffic mix by device class.
- Revenue share by product line.
- Ticket volume split across support channels.
Accessibility
Keep segment labels concise and ensure color is not the only cue when comparing categories.
Prefer the legend when slice labels would crowd the chart.
Next.js integration notes
Import from `@zentauri-ui/zentauri-components/charts/pie` inside client components when interaction is required.
FAQ
Can I render a donut chart instead of a full pie?
Yes. Set `innerRadius` to a percentage or number to open the center; keep it at `0` or omit it for a full pie.
How do I control slice colors?
Add a `color` field to each datum or rely on the shared chart palette fallback order when `color` is omitted.