Donut Example Re-imagined and Broken
✓ Published0🌍 Public
This example re-imagines a standard D3 donut chart as a playful face, rendered as an SVG path that forms a mouth arc, while the pie slices remain unjoined and broken due to missing data-binding logic. The React component uses D3 v5’s `d3.pie` and `d3.arc` to compute and render arcs, with `d3.scaleOrdinal` for colors and `d3.format` for labels. Data comes from a CSV of firearm, suicide, and alcohol-related deaths, loaded via `d3.csv` in a custom `useData` hook.
AI-generated descriptionAnimated Pie chart taken from this website.
MIT Licensed