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
Aavvarijayakrishna99@gmail.com
Last edited Mar 13, 2023
Created on Mar 13, 2023

This D3.js pie chart visualizes the top 10 countries by air pollution deaths in 2020, with each slice labeled with the death count in thousands. The chart uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the arcs, segment paths, and categorical colors. A custom legend, built with SVG rectangles and text elements, lists each country alongside its corresponding value, while the data is fetched from a CSV URL using `d3.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed