🌍 Public
Viewing a saved revision (read-only)
92e7a9334a9d4429a5a5770add644921
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