Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie chart Visualization

Public visualization

Fork of Pie chart Visualization

0 stars0🌍 Public
DDanthalakirankumar
Last edited Mar 28, 2022
Created on Mar 28, 2022

This example displays a pie chart showing the top 10 countries by deaths from air pollution in 2020. Each slice is labeled with the death count in thousands, and a legend lists the countries alongside their corresponding values. The visualization uses D3 v5 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to compute the arc paths and assign colors, while rendering the chart as SVG. Data is loaded asynchronously via `d3.csv` from a remote gist URL.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed