Skip to content
ProData

Donut Chart

A donut chart that assembles segment by segment, with a legend. On hover, one segment pulls out and the rest dim.

Plan
Pro · commercial license
Dependencies
React only
Props
11 (10 adjustable)

Included in Pro and Lifetime. See pricing

  • Design$4,20035%
  • Development$3,15026%
  • Marketing$2,30019%
  • Support$1,60013%
  • Other$7806%

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
dataDonutSlice[]"5 sample categories"Segments of the donut (a sample is used if you pass none).
titlestring"Total"Center text when no segment is highlighted.
prefixstring"$"Text before each value (for example "$").
suffixstring""Text after each value (for example "k").
categoriesLabelstring"{n} categories"Center text when no segment is highlighted, with {n} as the number of segments.
categoryLabelstring"{n} category"Same as categoriesLabel, but used when there is a single segment.
sizenumber200Diameter of the donut, in px.
thicknessnumber20Thickness of the ring, in px.
legendbooleantrueShows the legend with values and percentages.
durationnumber1.5Seconds the donut takes to assemble.
replayEverynumber0Seconds between reassemblies (0 leaves it still).

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Donut Chart

npx shadcn@latest add @furin-pro/donut-chart

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • A gradient progress ring with a glowing leading tip and a counting number; click to fill it again.

    Data

  • A trend line that draws itself with a leading dot, a soft area fill and a live dot that pulses at the end; the cursor shows each point's value and a double-click redraws it.

    Data

  • An analog gauge whose needle swings and settles on its value, with a printed dial and a red zone.

    Data