Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Maanas Katta

Public visualization

Viewing a saved revision (read-only)

59a80fb7bb26489d9a336b94218ebe80

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 Public
DDonald Bagwell
Last edited Dec 20, 2023
Created on Dec 20, 2023

This visualization presents a pie chart of the top 10 countries by deaths in 2020 attributed to air pollution, with each slice labeled with the death count in thousands and accompanied by a legend listing country names and values. The chart uses d3.pie and d3.arc to generate the slices, with d3.scaleOrdinal assigning a fixed set of colors to the data. Data is loaded asynchronously via d3.csv from a gist URL, and the SVG is rendered with D3 v5. Text labels are positioned using the arc generator’s centroid method.

AI-generated description