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)

a2949f5fd3dc444db0e655a93cdc3a97

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 Public
AAnanyaSamala
Last edited Jul 2, 2022
Created on Jul 2, 2022

This pie chart visualizes the top 10 countries by deaths in 2020 attributed to air pollution, with each slice sized by the Time value and labeled in thousands. A legend on the right maps slice colors to countries and their corresponding death counts. The visualization uses d3.pie and d3.arc to generate the donut-shaped segments and section labels via arc.centroid, while d3.scaleOrdinal assigns categorical colors. Data is loaded asynchronously from a CSV file using d3.csv, and the SVG canvas is manipulated directly with d3 selections, with text formatting applied via d3.format.

AI-generated description