Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie_chart_Us_states_density

Public visualization

Viewing a saved revision (read-only)

c46b142a7a8d463985be8f593e704a79

Fork of Pie_chart_Us_states_density

0 stars1🌍 Public
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