Radar Chart

SVG radar chart that plots normalized 0 to 1 values on labelled axes over four concentric grid rings. Themed with currentColor and labelled for screen readers.

src/registry/ui/radar-chart.tsx/r/radar-chart.json

Installation#

bash
npx shadcn@latest add @minidev/radar-chart

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/radar-chart.json

Usage#

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

export function Example() {
  return (
    <RadarChart labels={["Speed","A11y","DX","Motion","Tokens"]} values={[0.8,0.95,0.75,0.7,0.9]} />
  )
}

API reference#

RadarChart props
PropTypeDefault
labelsstring[]SAMPLE_LABELS
valuesnumber[]SAMPLE_VALUES
classNamestring-
labelstring"Radar chart"

Examples#

All chart components