Pie
Pie chart component rendered with Apache ECharts
Pie chart component rendered with Apache ECharts
dataKey and nameKey pick each sector’s value and name. The Pie child sets inner and outer radius for a donut, corner radius, start and end angles and paddingAngle, which draws even, parallel-edged gaps or, when negative, overlaps the sectors.
Label prints values inside the sectors or names outside them on leader lines, and Background adds one of eleven SVG patterns behind the pie. With isClickable the selected sector pops outward and the rest dim, controlled through selectedSector; negative values show an error in place of the chart.