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)

9875bc6a0064415fba99d6d2d141abed

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars1🌍 Public
Rradhadevarapu
Last edited Mar 12, 2023
Created on Mar 12, 2023

This pie chart visualizes the top 10 countries by air pollution-related deaths in 2020. The D3 v5 code loads data from a CSV file via `d3.csv`, calculates the total deaths, and renders a pie using `d3.pie` and `d3.arc` with explicit inner and outer radii. Each slice includes a text label, and a legend on the right displays each country’s name and death count. The chart uses `d3.scaleOrdinal` to assign colors from a predefined array, with the SVG canvas sized at 960 by 500 pixels.

AI-generated description