Fork of Pie_chart_Us_states_density
✓ Published1🌍 Public
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 descriptionMIT Licensed