🌍 Public
Viewing a saved revision (read-only)
0ed4aacc57c849e293c56203695d9657
Fork of ICE - 7 Pie Chart Maanas Katta
This pie chart visualizes the top 10 countries by air pollution-related deaths in 2020, labeling each slice with death counts in thousands. The chart renders using SVG with D3 v5, employing the `pie` and `arc` generators to create segments and `scaleOrdinal` for coloring. A legend lists countries with corresponding values. Data is fetched asynchronously from a CSV file using D3’s `csv` method, and text labels are positioned via `arcGenerator.centroid`.
AI-generated description