🌍 Public
Viewing a saved revision (read-only)
14d52bd0e8e445ceb5b32d87f353e864
Fork of ICE - 7 Pie Chart Maanas Katta
A pie chart displays the top 10 countries by air pollution-related deaths in 2020, using categorical colors and labels showing death counts in thousands. Data is loaded from a CSV via `d3.csv`, parsed with `d3.pie`, and rendered as SVG paths generated by `d3.arc`. The visualization includes a legend with colored rectangles, country names, and values, while labels are positioned using `arc.centroid`. The code relies on D3 v5 selection and scale APIs, with colors assigned through `d3.scaleOrdinal`.
AI-generated description