Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
This visualization shows the top 10 countries with the highest deaths from air pollution in 2020, displaying each country’s death count as a labeled slice of a pie chart with a legend. The code fetches CSV data with d3.csv, uses the d3.pie and d3.arc layouts to generate SVG paths, and applies a d3.scaleOrdinal for slice colors. Text labels and a legend are rendered via SVG text elements, with death values formatted in thousands using d3.format.
AI-generated descriptionMIT Licensed