Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie Chart Srinivas

Public visualization

Viewing a saved revision (read-only)

41d2a43498364e92921b249b15c1b868

ICE - 7 Pie Chart Srinivas

0 stars0🌍 Public
Ssrinivasaraosankula
Last edited Mar 11, 2023
Created on Mar 11, 2023

This D3.js pie chart visualizes deaths in 2020 caused by air pollution, aggregated by country. The SVG canvas renders each country’s death count as a colored slice with a value label, while a legend pairs each color with its country and corresponding figure. The visualization uses the `d3.pie` layout, `d3.arc` for generating sector paths, and `d3.scaleOrdinal` to assign colors. Data is loaded asynchronously from a CSV file via the `d3.csv` loader, and formatting is handled with `d3.format`.

AI-generated description