🌍 Public
Viewing a saved revision (read-only)
d9040ce7a6f44fc8bee9f26b9d0e9203
PIE Chart Aishwarya M
This visualization is a pie chart showing the top 10 countries by deaths in 2020 attributed to air pollution. Each slice is labeled with its corresponding death count in thousands, and a legend on the right lists each country alongside its value. The chart is built with D3 v5, using `d3.pie` to compute the arc data and `d3.arc` to generate the SVG paths, with colors assigned via `d3.scaleOrdinal`. Data is loaded as CSV from a GitHub gist, and text is positioned using `arc.centroid`.
AI-generated description