Fork of Fork of ICE 7 Pie Chart
✓ Published1🌍 Public
This visualization shows the top five countries by deaths in 2020 using a pie chart, with a legend displaying each country’s name and death count. The code loads CSV data from a GitHub gist via `d3.csv`, processes it with `d3.pie`, and renders slices using `d3.arc` with SVG paths. Colors are assigned via `d3.scaleOrdinal`, and labels are positioned using `arc.centroid`. A separate legend group appends rectangles and text, formatting values with `d3.format`. The chart is built with D3 v5, rendering entirely as SVG elements.
AI-generated descriptionMIT Licensed