Skip to main content
100%

Donut Example Re-imagined

✓ Published2🌍 Public
PPeter Maida
Last edited Oct 28, 2020
Created on Oct 28, 2020
Forked from Donut Example

A donut chart rendered with React and D3 v5 uses the `d3.arc` and `d3.pie` APIs to display five slices in a ring. A mouth-shaped arc sits at the center using a separate `mouthArc` path. A button labeled "Transform" regenerates random data through `generateData`, updating the chart via React state and D3 selection joins. The component also includes commented-out code for displaying formatted values using `d3.format`.

AI-generated description

Animated Pie chart taken from this website.

MIT Licensed

Similar vizzes