Skip to main content
100%

Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
0057SatvikDamera
Last edited Mar 13, 2023
Created on Mar 13, 2023

This pie chart displays the top 10 countries by air pollution deaths in 2020, using a dataset fetched from a GitHub-hosted CSV. Each slice represents a country’s death count, with a legend pairing country names and formatted values. The visualization is built with D3 v5, using `d3.pie()` to compute arc segments, `d3.arc()` for rendering SVG paths, and `d3.scaleOrdinal` for color assignment. Legends are appended as grouped SVG elements, with text formatted via `d3.format`. Data is loaded asynchronously with the `csv` function from D3’s fetch API.

AI-generated description
MIT Licensed

Similar vizzes