Pie Chart
✓ Published6🌍 Public
This pie chart displays the top ten states by Democratic voter population, with each slice sized according to the state’s Democratic vote count and labeled in a legend with the population in millions. The visualization uses D3 v5’s `pie` and `arc` generators to compute and draw the slices, `scaleOrdinal` with `schemeCategory10` for slice colors, and loads data from a CSV file containing 2020 election data. Hovering over a slice logs the Democratic population to the console, while the legend is built manually with SVG rectangles and text elements.
AI-generated descriptionMIT Licensed