Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
A pie chart displays the top 10 countries by deaths in 2020 from air pollution, with each slice colored and labeled with the death count in thousands. The chart uses d3.pie and d3.arc to generate segments, and d3.scaleOrdinal assigns colors from a predefined array. Legend entries pair country names with values. Data is loaded as CSV from a GitHub gist, and d3.format is used to abbreviate numbers. The SVG renders text labels via arc.centroid, with static sizing rather than animation.
AI-generated descriptionMIT Licensed