Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published1🌍 Public
DDivyaVellanki
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Fork of Fork of ICE - 7 Pie Chart Maanas Katta
This visualization displays the top 10 countries by air pollution-related deaths in 2020 as a pie chart, with labeled segments showing death counts in thousands and a legend listing country names alongside values. The chart uses d3.pie to compute arc angles, d3.arc for path generation, and d3.scaleOrdinal to assign colors. Data is loaded asynchronously from a CSV file via d3.csv, with death values parsed numerically and formatted using d3.format. The SVG rendering positions the pie at a fixed coordinate, with legend rectangles and text elements appended programmatically.
AI-generated descriptionMIT Licensed