Shabbab01 ICE - 7 Pie Chart
✓ Published0🌍 Public
This example shows a pie chart of the top 10 countries by population deaths, with each slice labeled in thousands and a legend listing country names and values. The chart is rendered as SVG using D3 v5, with the `d3.pie` layout generating arc data and `d3.arc` drawing the segments and centroid labels. Slice colors come from a `d3.scaleOrdinal` range, while data is loaded as CSV from a remote GitHub gist. The legend is built manually with SVG rectangles and text elements.
AI-generated descriptionMIT Licensed