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
AArv1228
Last edited Apr 17, 2022
Created on Apr 17, 2022

This pie chart visualizes the top 10 countries by deaths in 2020 caused by air pollution, using data fetched from a CSV file via d3.csv. The chart renders colored slices with percentage labels, while a legend lists each country and its corresponding death count. The visualization uses D3 v5’s pie() and arc() functions to generate the chart geometry, and scaleOrdinal() to assign colors. Labels and legend texts are positioned using arc.centroid() within an SVG canvas.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed