Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7

Public visualization

Viewing a saved revision (read-only)

c9078dd0a1e94301ba7cc106222a0c25

Fork of ICE - 7

0 stars3🌍 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