Skip to main content
100%

Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
Nnsatyaprakash22
Last edited Mar 12, 2023
Created on Mar 12, 2023

This visualization displays the top 10 countries by air pollution-related deaths in 2020, using a donut-style pie chart where each segment’s arc length corresponds to annual income data from a CSV file. The code fetches data from a GitHub Gist, parses it with `d3.csv`, and renders the chart using `d3.pie` and `d3.arc` within an SVG canvas. Each slice is colored via `d3.scaleOrdinal` with a predefined palette, and a legend to the right pairs color swatches with profession names and formatted income values (in thousands). The rendering is driven by D3 v5, with custom styling applied through CSS classes for text and legend elements.

AI-generated description
MIT Licensed

Similar vizzes