Skip to main content
100%

ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
Nnsatyaprakash22
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from D3 Starter

This pie chart visualizes the top 10 countries by deaths from air pollution in 2020, with each slice proportionally representing the death count and labeled in thousands. The visualization uses D3 v5’s `pie` and `arc` generators to compute and render the segments, with `scaleOrdinal` mapping country names to distinct colors. A legend on the right pairs each color swatch with the country name and its corresponding value. Data is loaded asynchronously from a CSV hosted on GitHub using D3’s `csv` function, and the chart is rendered as SVG within an HTML page.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes