Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

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

Similar vizzes