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)

a61e76cf07a54285a4c8d1ee289fc6bd

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars1🌍 Public
Ppravallikayaram12
Last edited Mar 28, 2022
Created on Mar 28, 2022

This pie chart visualizes the top 10 countries by air pollution-related deaths in 2020, using a categorical color scale with labels showing death counts in thousands. The visualization is built with D3 v5, using `d3.pie` to compute arc segments and `d3.arc` for rendering paths and text placement. Data is loaded asynchronously from a CSV via `d3.csv`, with each slice’s color mapped through `scaleOrdinal` to a fixed palette. A legend lists each country, its color swatch, and the corresponding death value, formatted with `d3.format` for compact display.

AI-generated description