🌍 Public
Viewing a saved revision (read-only)
9f736cfa20754b4db6b27d8966ffd92c
Fork of ICE - 7 Pie Chart Maanas Katta
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