Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published1🌍 Public
This pie chart visualizes the top 10 countries by air pollution-related deaths in 2020, using a categorical color scale with labels showing death counts in thousands. The visualization is built with D3 v5, using `d3.pie` to compute arc segments and `d3.arc` for rendering paths and text placement. Data is loaded asynchronously from a CSV via `d3.csv`, with each slice’s color mapped through `scaleOrdinal` to a fixed palette. A legend lists each country, its color swatch, and the corresponding death value, formatted with `d3.format` for compact display.
AI-generated descriptionMIT Licensed