Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published1🌍 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
MIT Licensed

Similar vizzes