Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Maanas Katta

Public visualization

Viewing a saved revision (read-only)

ae628403f1f1410abe2f5ae2b93a8afa

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 Public
Ssaivinay143
Last edited Mar 27, 2022
Created on Mar 27, 2022

A pie chart displays the top 10 countries by deaths from air pollution in 2020, with each slice labeled with its value in thousands and a corresponding legend listing country names and totals. The visualization uses D3 v5’s `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the SVG paths and colors, while data is fetched as CSV from a gist URL and parsed with `d3.csv`. Text labels are positioned via the arc centroid, and the legend is manually constructed with appended rectangles and text elements.

AI-generated description