Fork of ice7
✓ Published0🌍 Public
This example shows the top 10 countries by COVID-19 deaths using a static pie chart rendered as SVG. The code loads CSV data from a GitHub gist via `d3.csv`, computes each country’s death count as a percentage, and maps those values to pie segments using `d3.pie` and `d3.arc`. Color encoding is handled with `d3.scaleOrdinal`, while a legend with rectangles and text labels is built manually using D3’s selection and append methods. The chart includes a heading and numeric percentage labels formatted with `d3.format`.
AI-generated descriptionMIT Licensed