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

6
LLakshmiVandanaNunna
Last edited Mar 27, 2022
Created on Mar 24, 2022
Forked from [TEST] Pie Chart

This pie chart displays the top ten states by Democratic voter population, with each slice sized according to the state’s Democratic vote count and labeled in a legend with the population in millions. The visualization uses D3 v5’s `pie` and `arc` generators to compute and draw the slices, `scaleOrdinal` with `schemeCategory10` for slice colors, and loads data from a CSV file containing 2020 election data. Hovering over a slice logs the Democratic population to the console, while the legend is built manually with SVG rectangles and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed