🌍 Public
Viewing a saved revision (read-only)
ea8e17a1267840c6b086aedd72f7e86a
Fork of ICE - 7 Pie Chart Maanas Katta
This interactive SVG pie chart visualizes the top 10 countries by deaths from air pollution in 2020, using data from a CSV file. The chart, built with D3 v5, uses `d3.pie` and `d3.arc` to generate the sectors, with each slice colored and labeled by death count (in thousands). A legend on the right maps country names to their corresponding values. The code leverages D3's `scaleOrdinal` for color assignment and `arc.centroid` for text placement.
AI-generated description