Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
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 descriptionMIT Licensed