Skip to main content
Public

Share visualization

Loading preview…

Fork of Pie_chart_Us_states_density

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_Us_states_density

1
VVenkata Rajashekar Reddy Chinthala
Last edited Apr 2, 2022
Created on Apr 2, 2022

This visualization shows the top 10 US states by population density, displayed as a pie chart with each slice labeled by state name and density value in thousands. The chart uses a categorical color scale (d3.scaleOrdinal) to distinguish slices, with legends positioned to the right. Data loads from a CSV via d3.csv, and the pie layout (d3.pie) computes slice angles while d3.arc generates the SVG path geometries. The code renders all elements as SVG, applying custom colors and formatting density values with d3.format.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed