Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsCharts & data viz

Donut chart

Donut or semi-circle gauge with rounded padded segments, a centre total that swaps on hover or focus, and a keyboard-selectable legend.

Preview

Visits by source, October

Pinned: Direct
9,310Direct · 24.0%

Storage

80.1 GBUsed of 128.0 GB

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
data{ key: string; label: string; value: number; color?: string }[]—Segments in drawing order; colour defaults to --chart-1..5.
labelstring—Accessible name of the chart.
variant"donut" | "gauge""donut"Full ring or semi-circle gauge.
maxnumbertotalScale maximum; a larger value leaves an empty track.
sizenumber200Diameter in px.
thicknessnumber14% of sizeRing thickness in px.
gapnumber3Gap between segments in px.
cornerRadiusnumber4Segment corner radius in px.
centerLabelstring"Total"Caption under the centre total.
valueFormatter(value: number) => stringIntl numberFormats centre and legend values.
legendbooleantrueShow the legend list with values and percentages.
selectedstring | null—Controlled pinned segment key.
defaultSelectedstring | nullnullInitial pinned segment when uncontrolled.
onSelectedChange(key: string | null) => void—Called when a segment is pinned or unpinned.
localestring"en-US"Locale of the default formatters.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗