🌍 Public
Viewing a saved revision (read-only)
1e9c8c0d13e8481f86e7a59525de557e
Fork of Fork of ICE - 7
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 description