Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
DDonald Bagwell
Last edited Dec 20, 2023
Created on Dec 20, 2023

This visualization presents a pie chart of the top 10 countries by deaths in 2020 attributed to air pollution, with each slice labeled with the death count in thousands and accompanied by a legend listing country names and values. The chart uses d3.pie and d3.arc to generate the slices, with d3.scaleOrdinal assigning a fixed set of colors to the data. Data is loaded asynchronously via d3.csv from a gist URL, and the SVG is rendered with D3 v5. Text labels are positioned using the arc generator’s centroid method.

AI-generated description
MIT Licensed

Similar vizzes