Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Maanas Katta

Public visualization

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 Public
TTejaswicmandava
Last edited Mar 25, 2023
Created on Mar 25, 2023

This visualization shows the top 10 countries with the highest deaths from air pollution in 2020, displaying each country’s death count as a labeled slice of a pie chart with a legend. The code fetches CSV data with d3.csv, uses the d3.pie and d3.arc layouts to generate SVG paths, and applies a d3.scaleOrdinal for slice colors. Text labels and a legend are rendered via SVG text elements, with death values formatted in thousands using d3.format.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed