Radar Chart
radar-chartSeveral measures on one shape for comparing a few profiles, on TanStack Charts. Every spoke shares one scale from zero, the grid is a polygon, and focus picks a whole spoke so the tooltip lists every profile on it.
import { RadarChart } from "@/components/forme/radar-chart/radar-chart";
// Two models scored out of 100 on the same five evaluations.
const models = [
{ model: "Model A", reasoning: 86, coding: 78, writing: 91, speed: 62, cost: 55 },
{ model: "Model B", reasoning: 72, coding: 88, writing: 70, speed: 90, cost: 84 },
];
export function RadarChartDemo() {
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">Evaluation scores</p>
<p className="mt-1 text-body-regular text-foreground">
A writes and reasons better; B is faster, cheaper and codes better.
</p>
<RadarChart
className="mt-3"
label="Scores out of 100 for two models across five evaluations"
data={models}
index="model"
max={100}
axes={[
{ key: "reasoning", label: "Reasoning" },
{ key: "coding", label: "Coding" },
{ key: "writing", label: "Writing" },
{ key: "speed", label: "Speed" },
{ key: "cost", label: "Cost" },
]}
/>
</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.
RadarChart
Several measures on one shape, for comparing a few profiles at a glance.
| Prop | Type | Default | Description |
|---|---|---|---|
data* | readonly Row[] | — | One row per profile: a plan, a model, a player. |
index* | keyof Row & string | — | The field that names each profile. |
axes* | readonly RadarAxis<Row>[] | — | The spokes, clockwise from the top. Three to eight read well. |
label* | string | — | Accessible name. Say what the profiles are and what is measured. |
max | number | — | The value at the rim. Defaults to the largest value in the data. |
formatValue | (value: number) => string | plain | |
height | number | 320 | |
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