🌍 Public
Viewing a saved revision (read-only)
f4c268ac14b74d3a9a928c6be679825d
Fork of ICE - 7 Pie Chart Maanas Katta
This pie chart visualizes the top 10 countries by deaths from air pollution in 2020, with each slice labeled with its death count in thousands. The chart uses d3.pie and d3.arc to generate segments, while d3.scaleOrdinal assigns colors from a hardcoded array. A legend on the right lists each country with a color swatch and corresponding value. Data is fetched as CSV from a GitHub gist using d3.csv, and all elements are rendered as SVG.
AI-generated description