# Radial chart

Progress of a few parts as concentric rings.

- Family: charts
- Import: `import { RadialChart } from "@senvenli/react/charts";`
- Page: https://design.senvenli.com/docs/components/radial-chart
- JSON: https://design.senvenli.com/docs/components/radial-chart.json

## Example: Quarterly goals

Three progress figures on one 0–100 scale.

```tsx
import { RadialChart } from "@senvenli/react/charts";

const GOALS = [
  { name: "Revenue", value: 82 },
  { name: "New customers", value: 64 },
  { name: "Retention", value: 91 },
];

export default function Example() {
  return <RadialChart title="Quarterly goals" period="Q1 2026" data={GOALS} />;
}
```

## Examples

### With a formatter

Two rings whose values say what they count.

```tsx
import { RadialChart } from "@senvenli/react/charts";

const FULFILLMENT = [
  { name: "Shipped on time", value: 94.5 },
  { name: "Delivered on time", value: 88.2 },
];
const percent = new Intl.NumberFormat("en", { style: "percent", minimumFractionDigits: 1 });

export default function Example() {
  return <RadialChart title="Fulfillment" period="March 2026" data={FULFILLMENT} valueFormatter={(value) => percent.format(value / 100)} />;
}
```

## Guidelines

### When to use it

- Two to four progress figures side by side.

### Use something else when

- [gauge-chart](https://design.senvenli.com/docs/components/gauge-chart.md): There is only one figure.

## Accessibility

Built in:

- A "Show as table" button shows the same data as a table, which screen readers get by default.

You provide:

- A title that says what the figure is.

## API reference

### RadialChart

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| title | `string` |  | no | What the chart shows, over it; leave it out when a card or a heading already says so. |
| aria-label | `string` |  | no | Names the chart when it has no visible `title` (a card's heading already says what it shows). |
| period | `string` |  | no |  |
| isLoading | `boolean` |  | no |  |
| emptyState | `React.ReactNode` |  | no | Shown instead of the plot when there is no data: an `EmptyState size="small"` or text; "No data" by default. |
| height | `number` | `200` | no |  |
| data | `readonly DonutDatum[]` |  | yes | Two or three values on one 0–100 scale. |
| valueFormatter | `ChartValueFormatter` | `(value) => `${value}%`` | no |  |

### Tokens it reads

`--ds-background-neutral`, `--ds-background-neutral-pressed`, `--ds-border`, `--ds-border-bold`, `--ds-border-focused`, `--ds-chart-1`, `--ds-chart-2`, `--ds-chart-3`, `--ds-chart-4`, `--ds-chart-5`, `--ds-chart-neutral`, `--ds-link`, `--ds-radius-medium`, `--ds-radius-small`, `--ds-radius-xsmall`, `--ds-shadow-overlay`, `--ds-space-050`, `--ds-space-075`, `--ds-space-100`, `--ds-space-150`, `--ds-space-200`, `--ds-space-300`, `--ds-space-400`, `--ds-surface-overlay`, `--ds-surface-raised`, `--ds-text`, `--ds-text-danger`, `--ds-text-subtle`, `--ds-text-subtlest`, `--ds-text-success`

## Related

- [gauge-chart](https://design.senvenli.com/docs/components/gauge-chart.md)
