🌍 Public
Viewing a saved revision (read-only)
b1820143ee634256b8273410f1d2f6f2
Fork of ICE - 7 Pie Chart Maanas Katta
A pie chart displays the top 10 countries by air pollution-related deaths in 2020, with each slice labeled in thousands and a legend pairing country names with their values. The visualization uses D3 v5’s `pie`, `arc`, and `scaleOrdinal` APIs to generate SVG paths, with colors assigned from a hardcoded array. Data is loaded as CSV from a GitHub gist via `d3.csv`, and the chart is rendered inside an SVG canvas with custom legend text and value formatting.
AI-generated description