ICE - 7 Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the top 10 countries with the highest death counts from air pollution in 2020. A legend on the right, generated using D3’s `scaleOrdinal` for color mapping, identifies each country and its corresponding death toll. The chart uses D3’s `pie` and `arc` functions to compute and draw the SVG segments, with text labels placed at each slice’s centroid. Data is loaded asynchronously from a CSV file using D3’s `csv` function.
AI-generated descriptionMIT Licensed