Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of PIE Chart Aishwarya M

Public visualization

Viewing a saved revision (read-only)

f4fc6e2d58c24443889691723c55a4b8

Fork of PIE Chart Aishwarya M

0 stars0🌍 Public
Eeravellisaimeghana
Last edited Mar 29, 2022
Created on Mar 29, 2022

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