Skip to main content
100%

ICE - 7 Pie Chart

✓ Published0🌍 Public
BBajiSharifPatan@my.unt.edu
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example displays a pie chart of the top 10 countries by deaths in 2020 attributed to air pollution, with each segment labeled with its value in thousands and a corresponding legend listing country names and death counts. It loads CSV data via `d3.csv` (from a GitHub gist), then uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths and text elements. The chart is rendered with D3 v5, with styling applied through the `style.css` and inline SVG attributes.

AI-generated description
MIT Licensed

Similar vizzes