Skip to main content
Public

Share visualization

Loading preview…

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

Charan Fork of ICE - 7 Pie Chart

1
Ccharanchand9
Last edited Jul 3, 2022
Created on Jul 3, 2022

This visualization shows the top 10 most populated US states in a pie chart with a legend displaying each state’s name and population value. The chart is rendered in SVG using D3.js v5, with data loaded from a CSV file via `d3.csv`. The pie layout uses `d3.pie` and `d3.arc` to generate segments, while `d3.scaleOrdinal` assigns colors to each slice. Labels are positioned using the arc’s centroid method, and the legend is built with SVG rectangles and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed