Fork of activity 7Question 1
✓ Published0🌍 Public
This pie chart displays the top 10 countries by deaths in 2020 from air pollution. The code loads data from a CSV file, calculates each country’s share, and renders sections using d3.pie and d3.arc. It applies a d3.scaleOrdinal for colors, labels each slice with a formatted death count, and includes a legend built with SVG rectangles and text. The visualization uses D3 v5 with SVG rendering, featuring a simple color palette of ten predefined CSS colors.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed