Skip to main content
Public

Share visualization

Loading preview…

Pie Chart

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

0
Uubl2
Last edited Mar 24, 2022
Created on Mar 24, 2022
Forked from Pie Chart

A pie chart displays GDP per capita for ten countries from a CSV file, with color-coded slices and a legend showing country names and GDP values in billions. Built with D3 v5, the visualization uses `d3.pie()` and `d3.arc()` to generate SVG paths, `d3.scaleOrdinal` for color mapping, and `d3.format` for numeric labels. The data is loaded asynchronously via `d3.csv` from a gist URL, and the legend is manually positioned with rect and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed