Skip to main content
100%

Fork of ICE - 7

✓ Published3🌍 Public
PPujitha14challagulla
Last edited Jun 30, 2022
Created on Jun 30, 2022

This pie chart visualizes the top 10 countries by deaths from air pollution in 2020, with each slice sized by the number of deaths and labeled with a shortened value (e.g., “123.4K”). The chart is built using D3 v5, using the `pie` layout to compute arc segments, `arc` to generate the sector paths, and `scaleOrdinal` to assign a fixed color palette to the countries. A legend on the right maps each color to its country and corresponding death count. The data is fetched from a CSV via the `csv` function, and the SVG canvas is rendered with the chart centered at (250, 250) with a 250-pixel outer radius.

AI-generated description
MIT Licensed

Similar vizzes