ElevateIQ DigitalsElevateIQ DigitalsComponent Library

Pie chart

Part-to-whole at a glance. The legend prints every slice’s value and share.

When to use it

Six slices or fewer; anything past maxSlices folds into "Other". For close values, or a story about one number, use a bar or a stat tile.

Leads by source

Options

Everything you can pass to Pie chart.

PropTypeDefaultWhat it does
data{ name, value, color? }[]—Slices in the order to draw them.
maxSlicesnumber6The tail folds into a grey "Other".
labelsbooleanfalsePercentages on the slices.
legendbooleantrueWithout it the figures go to a hidden table.
heightnumber | string—Plot height. The HTML legend sits outside it.
valueFormatter(value) => stringen-IN, 2 dpAxis labels, tooltips, value labels and the hidden data table.
aria-labelstring—What the chart shows. Also captions its hidden data table.
loading / emptyTitle / emptyDescriptionboolean / string—Passed to Chart: skeleton, and the empty state when every value is zero.