🌍 Public
Viewing a saved revision (read-only)
661283a9456344a4b7a77b4a18c74a88
Fork of Pie_chart_Us_states_density
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