Skip to main content
100%

Fork of Pie chart ICE7

✓ Published0🌍 Public
MMar-99
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from Pie chart ICE7

This visualization shows the top five states by Democratic vote count from a cocoa-related dataset, displayed as a pie chart with state names positioned inside each slice. The chart uses D3 v6’s `pie` layout, `arc` generator, and `scaleOrdinal` with `schemeCategory10` for colors. Data is fetched via `d3.csv` from a GitHub Gist, sorted, and sliced to the top five entries. Each slice’s label uses an `arc` with a reduced inner radius to place text via `label.centroid`. The SVG is centered with CSS.

AI-generated description
MIT Licensed

Similar vizzes