🌍 Public
Viewing a saved revision (read-only)
bc6fe3bee623417cbe05324e4dcf04ec
Question 1 Pie Chart
A pie chart visualizes the top 10 countries by air pollution-related deaths in 2022, using CSV data from a GitHub gist. Each slice is labeled with its death count in thousands, and a corresponding legend lists country names and values. Built with D3 v5, the code uses `d3.pie`, `d3.arc`, and `scaleOrdinal` to generate and color the chart, while rendering text and SVG elements for labels and the legend.
AI-generated description