rao
✓ Published0🌍 Public
A pie chart displays the top 10 countries by air pollution deaths in 2020, with each slice labeled in thousands and accompanied by a legend listing country names and values. The visualization uses d3.pie and d3.arc to generate the chart geometry, while d3.scaleOrdinal maps a fixed color palette to data segments, and d3.format handles tick label formatting. Data is loaded asynchronously via d3.csv from a GitHub gist, with the SVG rendered entirely through D3 v5’s selection and enter/exit methods.
AI-generated descriptionMIT Licensed