Skip to main content

donut-binary

Feature guidance for the 2-segment (binary) Donut chart variant. Use when generating a Donut with exactly 2 segments and no separate swatch legend. Token values referenced here are defined in donut-chart-tokens.

Source facts

Repository
adobe/react-spectrum-charts
Last source activity
August 4, 2026 at 19:59
Detected SKILL.md language
English
Stars
129
Forks
30

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
donut-binary
description
Feature guidance for the 2-segment (binary) Donut chart variant. Use when generating a Donut with exactly 2 segments and no separate swatch legend. Token values referenced here are defined in donut-chart-tokens.
# 2-Segment / Binary Donut Tokens referenced below are defined in [`donut-chart-tokens`](../donut-chart-tokens/SKILL.md) — this file covers feature behavior only, not token values. - `Segment=2` variant - Primary segment: any categorical color; secondary: `chart.donut.color.secondary-gray` - No legend component — label lives in the center hole (`Metric total` + `Metric label`, see [`donut-metric-labels`](../donut-metric-labels/SKILL.md)) - Only the primary segment is labeled
View on GitHub