PIE Chart Aishwarya M
✓ Published1🌍 Public
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 descriptionMIT Licensed