Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Donut Example Re-imagined

Public visualization

Donut Example Re-imagined

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed