Shelf is open source and in early preview
Shelf

For AI agents: the documentation index is at /llms.txt, and any docs page is available as Markdown by appending .md to its URL.

Pie Chart

A pie or donut chart for the parts of a whole, with an optional total in the middle.

When to use

Use when
The parts of a whole, for up to six slices, with a total in the middle of a donut.
Avoid when
More than six slices, or slices that are close in size; use a Bar Chart.

Installation

The source lands in src/components/ui/chart-pie.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.

Usage

Built on

Packages
@stylexjs/stylex, recharts
Shelf items
Chart, foundations
Figma
Optional native Figma library. See Designers.

Verified

Size
1.4 kB gzipped on its own, 87 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Accessibility
Axe passes on 2 stories
Behavior
2 interaction tests in Storybook
React Doctor
React Doctor finds nothing