Question 1 Pie Chart
✓ Published1🌍 Public
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 descriptionDisplaying pie chart
MIT Licensed