Question 1 Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the top 10 countries with the most air pollution-related deaths in 2022. It uses D3.js (v5) with the `d3.pie` and `d3.arc` APIs to generate SVG paths, displaying death counts as labels formatted in thousands. Data is loaded asynchronously from a CSV file via `d3.csv`. A legend, positioned to the right, pairs each country with a colored rectangle and corresponding value, using `d3.scaleOrdinal` for color assignment.
AI-generated descriptionDisplaying pie chart
MIT Licensed