Skip to main content
100%

Fork of Fork of ICE - 7 Pie Chart 11515092

✓ Published1🌍 Public
NNaimisha-M
Last edited Jul 2, 2022
Created on Jul 1, 2022

This chart shows the top 10 countries by deaths attributed to air pollution in 2020, using a pie chart with a legend and value labels. It loads CSV data from a GitHub gist via `d3.csv` and renders SVG arcs with `d3.pie` and `d3.arc`. A `d3.scaleOrdinal` maps death counts to a fixed set of colors, while text labels use `d3.format` to abbreviate values as thousands (e.g., "1.2K"). The legend is built manually with appended SVG rectangles and text elements, all styled with CSS.

AI-generated description
MIT Licensed

Similar vizzes