Skip to main content
100%

Fork of countries

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

This visualization is a pie chart illustrating the top 10 countries by deaths from air pollution in 2020, with each slice labeled with the death count in thousands. The chart uses d3.pie, d3.arc, and d3.scaleOrdinal to generate the slices and their colors, while d3.select appends SVG elements for the pie and a legend. Data is fetched from a CSV URL via d3.csv, and the code formats the numeric labels using d3.format. The visualization clearly shows the proportional death tolls, with a legend mapping each country to its corresponding slice color.

AI-generated description
MIT Licensed

Similar vizzes