🌍 Public
Viewing a saved revision (read-only)
dad12ee7c1ea41c784aa6d17b17da8f7
Fork of Pie Chart
This visualization displays the top 10 U.S. states by Democratic population, using a pie chart with a categorical color scheme. The chart presents each state’s population in millions via an interactive legend and a labeled SVG arc. The code leverages D3 v5’s `select`, `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` APIs to construct the chart from CSV data. Hovering over a segment logs the corresponding state’s population to the console. The data is loaded from a remote CSV file, and the visualization is rendered as an SVG graphic.
AI-generated description