Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Pie Chart

0
Yyaswanthsen
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from Pie Chart

This visualization displays the top 10 U.S. states by Democratic population, using a pie chart with a categorical color scheme. The chart presents each state’s population in millions via an interactive legend and a labeled SVG arc. The code leverages D3 v5’s `select`, `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` APIs to construct the chart from CSV data. Hovering over a segment logs the corresponding state’s population to the console. The data is loaded from a remote CSV file, and the visualization is rendered as an SVG graphic.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed