🌍 Public
Viewing a saved revision (read-only)
c172004bee344ffcbbaf073b6ba281cf
Fork of Fork of ICE - 7 Pie Chart Maanas Katta
This visualization shows a pie chart of the top 10 countries by deaths from air pollution in 2020, with each segment labeled in thousands and accompanied by a color-coded legend listing country names and values. The chart is rendered as an SVG using D3.js v5, with data fetched from a CSV file via `d3.csv`. The pie layout is generated with `d3.pie()`, arcs are drawn using `d3.arc()`, and colors are assigned via `d3.scaleOrdinal`. Text labels and legends are appended directly to the SVG selection.
AI-generated description