🌍 Public
Viewing a saved revision (read-only)
7c37c8d4af6c49a089384b3f869671b1
Fork of PIE Chart Aishwarya M
This example shows the top 10 countries by deaths from air pollution in 2020 using a pie chart. Each slice is labeled with its value in thousands, and a legend lists country names alongside colored swatches and corresponding death counts. The visualization is built with D3.js version 5, using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths and labels. Data is loaded as CSV from a GitHub gist, and the chart is rendered in an SVG container.
AI-generated description