# Radar Chart (/ui/components/react/radar-chart)

A radar chart draws a profile across 5 to 8 measures that share a scale. With 2 profiles on the same axes it shows where they differ. Like every chart here it is a recipe: [Recharts](https://recharts.github.io) draws it and the [chart layer](/ui/components/react/charts) themes it. Each example below is a complete file to paste and adapt.

## Installation [#installation]

Recharts is the only extra dependency, with `react-is` at the same version as `react`:

```bash
pnpm add recharts react-is   # or: npm install recharts react-is / yarn add recharts react-is / bun add recharts react-is
```

The examples import the chart layer from `@/components/chart`. If your project doesn't have it yet, copy it from the [Charts](/ui/components/react/charts#the-chart-layer) page first.

## Examples [#examples]

### Default [#default]

1 profile in the first series color, filled with its `-soft` tint. The measures sit on a `PolarAngleAxis`, and the `PolarGrid` takes its color from the theme.

```tsx
'use client'

import { PolarAngleAxis, PolarGrid, Radar, RadarChart, Tooltip } from 'recharts'
import { Chart, ChartTooltip, chartColors, chartMarks, useChartMotion } from '@/components/chart'

const data = [
  { skill: 'Design', score: 86 },
  { skill: 'Frontend', score: 92 },
  { skill: 'Backend', score: 64 },
  { skill: 'Testing', score: 71 },
  { skill: 'Writing', score: 78 },
  { skill: 'Research', score: 58 },
]

const count = new Intl.NumberFormat('en-US')

export default function RadarChartDefault() {
  const motion = useChartMotion()

  return (
    <div className="w-full max-w-2xl">
      <Chart className="h-72">
        <RadarChart responsive data={data} outerRadius="65%" aria-label="Team skill scores out of 100">
          <PolarGrid />
          <PolarAngleAxis dataKey="skill" tickLine={false} axisLine={false} />
          <Tooltip content={<ChartTooltip formatValue={(value) => count.format(value)} />} />
          <Radar
            name="Score"
            dataKey="score"
            stroke={chartColors[0]}
            fill="var(--secondary-soft)"
            activeDot={chartMarks.activeDot}
            {...motion.series}
          />
        </RadarChart>
      </Chart>
    </div>
  )
}
```

### Multiple [#multiple]

2 profiles on the same axes, each a `Radar` with the next series color and its own tint. Stop at 2 or 3: more overlapping shapes hide each other, and a [grouped bar chart](/ui/components/react/bar-chart#grouped) compares them better.

```tsx
'use client'

import { Legend, PolarAngleAxis, PolarGrid, Radar, RadarChart, Tooltip } from 'recharts'
import { Chart, ChartLegend, ChartTooltip, chartColors, chartMarks, useChartMotion } from '@/components/chart'

const data = [
  { metric: 'Speed', store: 88, market: 72 },
  { metric: 'Uptime', store: 94, market: 81 },
  { metric: 'Support', store: 76, market: 90 },
  { metric: 'Pricing', store: 62, market: 85 },
  { metric: 'Features', store: 83, market: 68 },
  { metric: 'Setup', store: 71, market: 77 },
]

const count = new Intl.NumberFormat('en-US')

export default function RadarChartMultiple() {
  const motion = useChartMotion()

  return (
    <div className="w-full max-w-2xl">
      <Chart className="h-80">
        <RadarChart responsive data={data} outerRadius="65%" aria-label="Customer ratings of 2 products, by metric">
          <PolarGrid />
          <PolarAngleAxis dataKey="metric" tickLine={false} axisLine={false} />
          <Tooltip content={<ChartTooltip formatValue={(value) => count.format(value)} />} />
          <Legend itemSorter={null} content={<ChartLegend />} />
          <Radar
            name="Appica Store"
            dataKey="store"
            stroke={chartColors[0]}
            fill="var(--secondary-soft)"
            activeDot={chartMarks.activeDot}
            {...motion.series}
          />
          <Radar
            name="Appica Market"
            dataKey="market"
            stroke={chartColors[1]}
            fill="var(--success-soft)"
            activeDot={chartMarks.activeDot}
            {...motion.series}
          />
        </RadarChart>
      </Chart>
    </div>
  )
}
```

## Accessibility [#accessibility]

- Pass `aria-label` to the chart with what it shows (`"Team skill scores out of 100"`). It becomes the accessible name of the SVG.
- The chart takes focus, and the arrow keys move the tooltip from measure to measure.
- A chart with 2 profiles has a `Legend`, and the tooltip names both, so color is never the only cue.
- Nothing animates under reduced motion.
