Fork of Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
This pie chart visualizes the top 10 countries by deaths from air pollution in 2020. Each slice represents a country, with its size proportional to the number of deaths, and labels show the death counts in thousands. A legend maps slice colors to country names. The visualization uses D3 v5 APIs including `pie` for computing arc segments, `arc` for generating the path data, and `scaleOrdinal` for color assignment. Data is loaded from a CSV file via `d3.csv`, and the SVG canvas is populated with `<path>` and `<text>` elements using `select` and `append`.
AI-generated descriptionMIT Licensed