Controls

Radar Chart

Effect
Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Radar Chart
  • Pro
  • Free

Plans compared
skillProFree
Speed8260
Storage9040
Support7535
Sharing8870
Search7055
Privacy8462

Radar Chart

Soft filled shapes on a round web that compare several measures at once.

Installation

npx shadcn@latest add ikislay/pixel-ui/radar-chart

How to use

import { 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 (
<RadarChart
label="Plans compared"
data={data}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
data*
Record<string, string | number>[]

One object per axis, clockwise from the top.

index*
string

The 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*
string

Names the chart for screen readers and captions its data table.

format
(value: number) => string

Formats values wherever the chart shows them. Defaults to short numbers like 12.4K.

curve
roundedsmooth

Rounded keeps straight edges with soft corners; smooth draws one flowing curve through every value.

grid
circlepolygon

The shape of the rings behind the data.

className
string

Merged onto the root element.