Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published1🌍 Public
This visualization shows the top 10 countries by deaths from air pollution in 2020, using a pie chart with colored segments and a legend. Each slice displays its death count in thousands, while the legend lists the country names and corresponding values. The chart is built with D3 v5, using `d3.pie` to compute the angular data, `d3.arc` to generate the SVG paths, and `d3.scaleOrdinal` to assign colors from a fixed palette. Data is fetched as CSV from a GitHub gist, and the legend is manually positioned with SVG groups.
AI-generated descriptionMIT Licensed