ice 7
✓ Published1🌍 Public
A pie chart displays the top 10 countries by deaths from air pollution in 2020, with each slice labeled with its value in thousands. The chart uses d3.pie and d3.arc to generate the segments, with a d3.scaleOrdinal assigning a palette of ten distinct colors. Data is loaded from a CSV via d3.csv, and each slice’s value is formatted using d3.format. A legend on the right lists each country alongside its corresponding color and death count.
AI-generated descriptionMIT Licensed