Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice 7

Public visualization

Viewing a saved revision (read-only)

a1e7dfe340e74d16897af8d91c391fbb

ice 7

0 stars0🌍 Public
Ppravallikayaram12
Last edited Mar 27, 2022
Created on Mar 27, 2022

This visualization displays the top 10 countries with the highest deaths in 2020 attributed to air pollution, using a pie chart with legend. The data is loaded from a CSV file via `d3.csv`, and each slice’s value is formatted in thousands using `d3.format`. The chart renders with SVG, using `d3.pie` and `d3.arc` to generate segments, while a `d3.scaleOrdinal` maps colors to data values. Text labels and a detailed legend are appended directly to the SVG.

AI-generated description