Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Maanas Katta

Public visualization

Viewing a saved revision (read-only)

4cf07c85757546c3aa426e5a655851ca

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 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