Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
AArefa Patwary
Last edited Mar 28, 2022
Created on Mar 28, 2022

This pie chart visualizes the top 10 countries by deaths from air pollution in 2020, using a dataset fetched from a GitHub gist. Each slice represents a country’s death count, with labels showing values in thousands and a legend listing country names and corresponding figures. The visualization uses d3.pie and d3.arc to generate the chart, with d3.scaleOrdinal assigning colors, d3.csv loading the data, and d3.format for tick labels. The SVG is rendered with appended `path` and `text` elements, while the legend is built from rectangles and texts.

AI-generated description
MIT Licensed

Similar vizzes