Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

pie chart

Public visualization

Viewing a saved revision (read-only)

6a294a5072e84f878b49a957fd19d6c3

pie chart

0 stars0🌍 Public
SSai Hemanth Babu Sunkari
Last edited Mar 28, 2024
Created on Feb 23, 2024

A pie chart displays the top 10 countries by recorded deaths from gas pollution in 2021, with each slice labeled in thousands and accompanied by a color-matched legend. The visualization reads data from a CSV file via `d3.csv` and uses `d3.pie` and `d3.arc` to generate the segments, with `d3.scaleOrdinal` assigning colors. Text labels are positioned using the arc centroid, and the chart renders as SVG within an HTML page.

AI-generated description