Polygon grid with one spoke per axis and a shape per series, for comparing a handful of measures on one scale.
One series with tiles
A filled shape over the polygon grid and a tile per axis. Hover anywhere or focus an axis label (arrow keys move) to mark it and swap the headline.
Hours by discipline
656 h
+6.4% vs last quarter| Axis | This quarter |
|---|---|
| Strategy | 86 h |
| Design | 214 h |
| Build | 172 h |
| Content | 64 h |
| Motion | 48 h |
| Research | 72 h |
- Strategy86 h
- Design214 h
- Build172 h
- Content64 h
- Motion48 h
- Research72 h
Installation
Copies the component into src/design-system/ as your own source, with only the files it needs.
npx avesk-ui@latest add radar-chart-cardBrings the 8 files it builds on (chart.tsx, badge.tsx, dropdown-menu.tsx, button.tsx, glyph.tsx, icon.tsx, floating.tsx, segmented-control.tsx). The first time, it also adds the tokens and the cn() helper, imports the tokens in globals.css and installs clsx and tailwind-merge. Files already in your project are kept unless you add --force.
Import
Lives in src/design-system/components/radar-chart-card.tsx.
import { RadarChartCard } from "@/design-system/components/radar-chart-card";Usage
<RadarChartCard
title="Hours by discipline"
data={[{ label: "Strategy", hours: 86 }, { label: "Design", hours: 214 }, …]}
series={[{ key: "hours", label: "This quarter" }]}
format={(n) => `${n} h`}
/>Examples
Compare two series
Several series get a legend with their totals; variant="lines" drops the fill so overlapping shapes stay readable. The switch here toggles the look.
Hours by discipline
656 h
| Axis | This quarter | Last quarter |
|---|---|---|
| Strategy | 86 h | 64 h |
| Design | 214 h | 236 h |
| Build | 172 h | 128 h |
| Content | 64 h | 92 h |
| Motion | 48 h | 22 h |
| Research | 72 h | 58 h |
- This quarter656 h
- Last quarter600 h
Scores with dots
variant="dots" marks every vertex; max sets the outer ring (10 for a score out of 10) and footer="none" hides the tiles.
Client feedback · Denzing
8.2 / 10
| Axis | Score |
|---|---|
| Brief | 9 |
| Concepts | 8.5 |
| Revisions | 7 |
| Timing | 7.5 |
| Handover | 9 |
When to use
Use it when
- A profile across 3–8 measures on the same scale: hours by discipline, feedback scores by phase
- Comparing two profiles, e.g. this quarter against last (variant="lines")
Don’t use it when
- Exact comparisons between items → Bar list card
- A trend over time → Area chart card
Rules
- Every axis must share one scale; set `max` when there is a natural ceiling (10 for a score)
- One series gets a tile per axis; several series get a legend with their totals
- Use variant="lines" for two or more series so overlapping shapes stay readable
- Short axis labels: they sit around the chart and limit its radius
Properties
RadarChartCard
| Prop | Type | Default |
|---|---|---|
title * | string | – |
data * | ChartRow[] | – |
series * | ChartSeries[] | – |
max | number | – |
variant | "filled" | "dots" | "lines" | "filled" |
value | string | – |
change | number | – |
changeLabel | string | "vs previous period" |
invertChange | boolean | false |
period | ChartPeriod | – |
format | NumberFormat | formatNumber |
footer | "tiles" | "legend" | "none" | – |
height | number | 240 |
headingLevel | 2 | 3 | 4 | 3 |
className | string | – |
* required
Accessibility
- The SVG has role="img" and an aria-label summary; a visually hidden table lists every value
- Each axis label is a focusable target with one Tab stop: arrows move, Home/End jump, Escape hides the tooltip; its aria-label reads every series' value
- The tooltip and headline follow hover and focus alike; meaning never relies on colour (labels and values sit next to every swatch)
- The draw-in animation only runs without prefers-reduced-motion