Skip to main content
100%

rao

✓ Published0🌍 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
MIT Licensed

Similar vizzes