🌍 Public
Viewing a saved revision (read-only)
3e8ce1cd6e6f4a0eb9bae0a68e2cf51b
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