🌍 Public
Viewing a saved revision (read-only)
a720c439b1a544b682ed545c87f51a92
ICE - 7 Pie Chart
This example displays a pie chart of the top 10 countries by deaths in 2020 attributed to air pollution, with each segment labeled with its value in thousands and a corresponding legend listing country names and death counts. It loads CSV data via `d3.csv` (from a GitHub gist), then uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths and text elements. The chart is rendered with D3 v5, with styling applied through the `style.css` and inline SVG attributes.
AI-generated description