rao
✓ Published0🌍 Public
A pie chart displays the top 10 countries by air-pollution-related deaths in 2020, with each segment labeled in thousands and a legend listing countries and values. The chart is rendered in SVG using D3 v5, fetching CSV data from a GitHub gist. It uses `d3.pie` and `d3.arc` for segment geometry, `d3.scaleOrdinal` for colors, and `d3.format` to abbreviate numbers. Text labels are positioned via `arc.centroid()`, while the legend uses appended rectangles and text elements.
AI-generated descriptionMIT Licensed