# Donut share chart

https://fieldbook.lizardi.mx/components/donut-share-chart

Category: Charts
![Still of the Donut share chart component, a Fieldbook UI component in Charts.](https://fieldbook.lizardi.mx/thumbs/donut-share-chart.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/donut-share-chart-3c72167798.mp4 (5 s, silent)

Donut share chart: A five slice donut with a hollow centre and hairline gaps that sweeps open on mount and lifts whichever slice the pointer is over.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| accent | color | #FF6A1F | No additional limit in the metadata. |
| hueRange | number | 90 | From 20 to 180; step 5 |
| holeRatio | number | 0.55 | From 0.2 to 0.75; step 0.05 |
| gap | number | 2 | From 0 to 6; step 0.5 |
| showTooltip | boolean | true | No additional limit in the metadata. |

## Usage notes

Donut share chart uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Donut share chart?

Donut share chart is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Donut share chart depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

### What accessibility details are visible in Donut share chart?

The React source for Donut share chart includes: attributes and handlers (aria-hidden, aria-label, aria-live, aria-pressed, onKeyDown, tabIndex); explicit roles (button, group); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Enter, Escape, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Donut share chart handle reduced motion?

Donut share chart reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: opacity: drawn \|\| reduce ? 1 : 0; transitionDelay: reduce ? "0ms" : \`$\{SWEEP\_MS\}ms\`; transitionDelay: reduce ? "0ms, 0ms, 0ms" : \`$\{delay\}ms, 0ms, 0ms\`. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "donut-share-chart",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Engraved label pie](https://fieldbook.lizardi.mx/components/engraved-label-pie)
- [Raised Slice Donut](https://fieldbook.lizardi.mx/components/raised-slice-donut)
- [Seamless share pie](https://fieldbook.lizardi.mx/components/seamless-share-pie)
- [Area chart lite](https://fieldbook.lizardi.mx/components/area-chart-lite)
- [Candle Price Chart](https://fieldbook.lizardi.mx/components/candle-price-chart)
- [Donut with total](https://fieldbook.lizardi.mx/components/donut-with-total)
