Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

rao

Public visualization

rao

0 stars0🌍 Public
RRakshithaRao27
Last edited Mar 27, 2022
Created on Mar 27, 2022

A pie chart displays the top 10 countries by air-pollution-related deaths in 2020, with each segment labeled in thousands and a legend listing countries and values. The chart is rendered in SVG using D3 v5, fetching CSV data from a GitHub gist. It uses `d3.pie` and `d3.arc` for segment geometry, `d3.scaleOrdinal` for colors, and `d3.format` to abbreviate numbers. Text labels are positioned via `arc.centroid()`, while the legend uses appended rectangles and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed