Skip to main content
100%

ICE - 7 Pie Chart Maanas Katta

✓ Published157🌍 Public
MMaanas Katta
Last edited Mar 28, 2022
Created on Mar 26, 2022
Forked from Pie Chart

This D3.js visualization presents a pie chart of the top 10 countries by deaths attributed to air pollution in 2020. Each slice is labeled with the death count in thousands, and a corresponding legend lists the country names alongside their values. The chart uses `d3.pie` and `d3.arc` to generate the segments, with colors assigned via `scaleOrdinal`. Data is loaded from a CSV file using `d3.csv`. The visualization is rendered as an SVG, with a custom legend built manually using appended SVG groups and rectangles.

AI-generated description
MIT Licensed

Similar vizzes