Chart

Pie

Web supportediOS supportedAndroid supported

Show a simple part-to-whole relationship with a short tail.

ECharts pie series · View source

When to use

Use for two to five parts. Prefer bars when precise comparison matters.

Props

The chart's own props first, then the shared ones this form reads.

PropTypeDefaultDescription
data*ChartDatum[]Part-to-whole values ordered by importance.
formatChartNumberFormatNumber formatting shared by axes, labels and tooltips.
isSolidbooleanfalseFills the center to render a full pie.
maxSlicesnumber3Number of slices retained before folding the tail.
otherLabelstringTranslated label used for the folded tail.
texturebooleanfalseDraws decal patterns over fills — a second encoding on top of hue, for full colour-vision deficiency, print and forced-colors.
classNamestringCSS class applied to the chart root.
heightnumber240Plot height in px. A chart never measures its own content, so this is what reserves the space.
isLoadingbooleanfalseHeld true while the data is in flight. Shows the matching skeleton, then cross-fades into the plot.
skeletonReactNodeReplaces the built-in placeholder while isLoading is true. Takes a rendered element.
surfaceChartSurfaceThe container the plot sits in — background, border, corner radius, padding. Merges over Chart.Provider, key by key.