Skip to main content
100%

PIE Chart Aishwarya M

✓ Published1🌍 Public
AAishwarya Manjunath
Last edited Mar 28, 2022
Created on Mar 28, 2022

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
MIT Licensed

Similar vizzes