Fork of ICE - 7
✓ Published0🌍 Public
This example uses a pie chart to visualize the top 10 countries by deaths in 2020 attributed to air pollution. The D3.js v5 code loads CSV data from a gist, converts the figures with the `csv` function, and renders the chart using `pie`, `arc`, and `scaleOrdinal`. Each slice is labeled with a short formatted value, and a legend lists the countries with their corresponding counts, all displayed as SVG elements.
AI-generated descriptionMIT Licensed