🌍 Public
Viewing a saved revision (read-only)
8042375954f04108b2c5806b44f5986f
ICE - 7 Pie Chart Maanas Katta
This D3.js visualization presents a pie chart of the top 10 countries by deaths attributed to air pollution in 2020. Each slice is labeled with the death count in thousands, and a corresponding legend lists the country names alongside their values. The chart uses `d3.pie` and `d3.arc` to generate the segments, with colors assigned via `scaleOrdinal`. Data is loaded from a CSV file using `d3.csv`. The visualization is rendered as an SVG, with a custom legend built manually using appended SVG groups and rectangles.
AI-generated description