caliper uidocs

Radar chart

Pro

Several measures on shared axes, drawn as one filled shape.

Installs components/ui/radar-chart.tsxDepends on d3-shapeMotion none in component source
pnpm dlx shadcn@latest add @caliper/radar-chart
Skill profile
DesignFrontendBackendDataOperationsSecurity

Skill profile
AxisPlatform teamTarget
Design33.5
Frontend4.54
Backend44
Data2.53.5
Operations3.54
Security34

When to use #

Use it for

  • Comparing a few items across the same five to eight dimensions.
  • Showing a profile, such as strengths of a plan or a team.

Skip it when

  • Exact values matter; use a table or bars.
  • The axes have different units or no natural order.

Installation #

terminal
pnpm dlx shadcn@latest add @caliper/radar-chart

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage #

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { RadarChart } from "@/components/ui/radar-chart"

The worked example comes with Pro

The 20-line example behind the preview opens here with a Pro or Team licence.

Checking your licence…

API reference #

RadarChart

component
PropTypeDefault
label *string—
axes *readonly string[]—
series *readonly RadarSeries[]—
maxnumber—
ringsnumber4
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—

Accessibility #

It exposes group and status semantics, with aria-label and aria-busy kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
→Moves to the next item or value.
↓Moves to the next item or value.
←Moves to the previous item or value.
↑Moves to the previous item or value.
EscapeCloses or cancels, then returns focus to where it came from.

Motion #

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.