Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
| skill | Pro | Free |
|---|---|---|
| Speed | 82 | 60 |
| Storage | 90 | 40 |
| Support | 75 | 35 |
| Sharing | 88 | 70 |
| Search | 70 | 55 |
| Privacy | 84 | 62 |
Soft filled shapes on a round web that compare several measures at once.
npx shadcn@latest add ikislay/pixel-ui/radar-chartimport { RadarChart } from "@/components/ui/radar-chart"const data = [{ skill: "Speed", pro: 82, free: 60 },{ skill: "Storage", pro: 90, free: 40 },{ skill: "Support", pro: 75, free: 35 },{ skill: "Sharing", pro: 88, free: 70 },{ skill: "Search", pro: 70, free: 55 },]export function Demo() {return (<RadarChartlabel="Plans compared"data={data}
1// Loading…
Options you can pass to customize this component.
data*Record<string, string | number>[]One object per axis, clockwise from the top.
index*stringThe key in each object that names the axis.
series*{ key: string; label?: string; color?: string }[]The keys to draw as shapes. Colors follow the chart palette in order unless you set one.
label*stringNames the chart for screen readers and captions its data table.
format(value: number) => stringFormats values wherever the chart shows them. Defaults to short numbers like 12.4K.
curveroundedsmoothRounded keeps straight edges with soft corners; smooth draws one flowing curve through every value.
gridcirclepolygonThe shape of the rings behind the data.
classNamestringMerged onto the root element.