Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of ICE - 7 Pie Chart Maanas Katta

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

Fork of Fork of ICE - 7 Pie Chart Maanas Katta

0
SSheshidharreddy
Last edited Mar 29, 2022
Created on Mar 29, 2022

The visualization is a pie chart showing the top 10 countries with the highest number of deaths attributed to air pollution in 2020. Each slice is annotated with its corresponding value in thousands, and a legend on the right pairs each country name with its death count. The chart is built using D3 v5, leveraging the `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` APIs for slice generation, coloring, and layout, with data fetched as CSV from a GitHub Gist. The SVG canvas is populated programmatically via `d3.select`, and text labels are positioned using the arc centroid.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed