Skip to main content
Public

Share visualization

Loading preview…

PIE Chart Aishwarya M

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

PIE Chart Aishwarya M

1
AAishwarya Manjunath
Last edited Mar 28, 2022
Created on Mar 28, 2022

This visualization is a pie chart showing the top 10 countries by deaths in 2020 attributed to air pollution. Each slice is labeled with its corresponding death count in thousands, and a legend on the right lists each country alongside its value. The chart is built with D3 v5, using `d3.pie` to compute the arc data and `d3.arc` to generate the SVG paths, with colors assigned via `d3.scaleOrdinal`. Data is loaded as CSV from a GitHub gist, and text is positioned using `arc.centroid`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed