Radial Bar Chart
radial-bar-chartConcentric rings that sweep round to their value over a faint track, on TanStack Charts: usage against plan limits, progress toward several goals. Rounded ends, an open middle, and every value printed in the legend.
import { RadialBarChart } from "@/components/forme/radial-bar-chart/radial-bar-chart";
// How much of each plan limit the workspace has used this month.
const limits = [
{ resource: "Seats", used: 82 },
{ resource: "Storage", used: 64 },
{ resource: "API calls", used: 47 },
{ resource: "Builds", used: 23 },
];
export function RadialBarChartDemo() {
return (
<div className="w-full rounded-xl border border-border bg-card p-5 lit edge">
<p className="text-caption-1-medium text-muted-foreground">Plan usage</p>
<p className="mt-1 text-body-regular text-foreground">Seats will run out first.</p>
<RadialBarChart
className="mt-3"
label="Share of each plan limit used this month"
data={limits}
index="resource"
value="used"
max={100}
formatValue={(value) => `${value}%`}
/>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
RadialBarChart
Concentric rings, each sweeping round to its value over a faint track of the whole: progress toward several goals, share of a quota, usage against plan limits.
| Prop | Type | Default | Description |
|---|---|---|---|
data* | readonly Row[] | — | One row per ring, outermost first. |
index* | keyof Row & string | — | The field that names each ring. |
value* | NumericKey<Row> | — | The quantity each ring sweeps around to. |
label* | string | — | Accessible name. Say what the rings are and what a full ring means. |
max | number | — | The value of a full sweep. Defaults to the largest value. |
sweep | "full" | "three-quarters" | "three-quarters" | How far round a full ring goes: a whole turn, or three quarters. |
formatValue | (value: number) => string | plain | |
height | number | 260 | |
className | string | — |
Related


Chart
The tooltip and legend every Forme chart shares: a floating panel with a colour, a name and a right-aligned value per series, and a row of swatches. Installed with any chart; use them directly to give a chart of your own the same finish.
data display

Composed Chart
Columns and a line on one axis, on TanStack Charts: volume against its target, actuals against the plan. Rounded columns side by side, the line drawn over them, and a band cursor that lists every series in the column.
data display

Heatmap Chart
A grid of cells whose colour carries a quantity, on TanStack Charts: activity by weekday and hour, scores by team and quarter. Six steps of one hue from the sunken surface to the chart accent, optional values in the cells, and a tooltip on every cell.
data display