Skip to main content
100%

Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
DDivyaVellanki
Last edited Mar 27, 2022
Created on Mar 27, 2022

This visualization shows the top 10 countries by deaths from air pollution in 2020, rendered as a pie chart with labeled percentage values and a legend listing country names alongside their death tolls. The code fetches CSV data from a GitHub gist, parses it with d3.csv, and uses d3.pie and d3.arc to generate SVG path segments. A d3.scaleOrdinal maps death counts to distinct colors, while text labels are positioned using arc.centroid. The chart is built with d3 v5 and rendered entirely as SVG elements within a static HTML page.

AI-generated description
MIT Licensed

Similar vizzes