Skip to main content
100%

Pie_chart_Us_states_density

✓ Published7🌍 Public
MMeghanaArepalli
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Fork of Pie Chart

A pie chart displays the population density of the top 10 U.S. states, with each slice sized proportionally to its density value and colored via a distinct scale. The chart labels each state with its density in thousands, and a legend lists states with corresponding color swatches. Built with d3.v5, the visualization loads CSV data from a GitHub gist using `d3.csv`, computes pie angles with `d3.pie`, draws SVG paths via `d3.arc`, and assigns colors through `d3.scaleOrdinal`. The SVG canvas is 960 by 500 pixels, with the pie centered and legends offset to the right.

AI-generated description
MIT Licensed

Similar vizzes