Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 PIE CHART

Public visualization

Viewing a saved revision (read-only)

f1a5dc4a512c4d2b81f52477bdf6a5fd

ICE-7 PIE CHART

0 stars0🌍 Public
SSamanvitha1
Last edited Jul 3, 2022
Created on Jul 3, 2022

This pie chart displays the top 10 countries by deaths from air pollution in 2020, with each slice labeled with the death count in thousands and a corresponding legend listing country names and values. The visualization uses d3.pie and d3.arc to generate segments, d3.scaleOrdinal for color assignment, and d3.csv to load the dataset from a GitHub gist. Text labels are positioned using arc centroid calculations, and the legend is built manually with SVG rect and text elements.

AI-generated description