Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart US State Density

Public visualization

Pie Chart US State Density

0 stars1🌍 Public
PPavaniMangugari
Last edited Jul 2, 2022
Created on Jul 2, 2022

A pie chart displays the top 10 US states by population density, with each slice colored and sized proportionally to its density value in thousands. The visualization includes a legend with state names and formatted density labels. Data is loaded asynchronously from a CSV file via `d3.csv`, then processed and rendered using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color mapping. The SVG is generated with d3 v5 and uses `d3.format` for tick label formatting, with all visual elements drawn as SVG paths and rectangles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed