Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
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 descriptionMIT Licensed