Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
AArv1228
Last edited Apr 17, 2022
Created on Apr 16, 2022

This D3.js v5 visualization presents a pie chart of the top 10 countries by deaths from air pollution in 2020, using data fetched from a CSV file hosted on GitHub. The chart displays proportional slices for each country, with a legend listing both country names and their corresponding death counts. The code uses D3’s `pie` and `arc` functions to generate the chart geometry, along with `scaleOrdinal` for color assignment. Sections are labeled via arc centroids, and the SVG rendering includes a legend built with `selectAll`, `append`, and `classed` methods.

AI-generated description
MIT Licensed

Similar vizzes