Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
Ddivyakota99
Last edited Jun 29, 2022
Created on Jun 29, 2022

This D3.js (v5) visualization presents a pie chart of the top 10 countries by air pollution-related deaths in 2020, with each slice labeled with the death count in thousands and a corresponding color-coded legend listing country names and values. The SVG-based chart is rendered using the `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` APIs, with data fetched from a CSV file via `d3.csv`. Slice labels are placed using the arc centroid for positioning, while a legend is built separately with appended rectangles and text elements.

AI-generated description
MIT Licensed

Similar vizzes