Skip to main content
100%

Pie Chart

✓ Published6🌍 Public
LLakshmiVandanaNunna
Last edited Mar 27, 2022
Created on Mar 24, 2022
Forked from [TEST] Pie Chart

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 description
MIT Licensed

Similar vizzes