🌍 Public
Viewing a saved revision (read-only)
a19e283ae84b4aad81743e22c507fc96
question2-task9
This example displays a pie chart of deaths in 2023 caused by air pollution, broken down by country. It uses D3.js (d3.pie, d3.arc, d3.scaleOrdinal) to generate SVG arcs with labeled segment percentages and an interactive legend listing each country with its corresponding death count. The data is loaded as CSV from a GitHub gist, and the chart colors each slice with a fixed palette.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.