Fork of Fork of ICE - 7
✓ Published1🌍 Public
This visualization shows the top 10 countries by deaths in 2020 attributed to air pollution, displayed as a pie chart with a corresponding legend. The chart uses colored segments for each country, with death counts formatted in thousands and listed alongside country names. The code loads CSV data via `d3.csv`, processes the values, and renders the chart using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal`. Text labels and legend elements are appended to the SVG using D3 selections, with colors assigned from a predefined array.
AI-generated descriptionMIT Licensed