Radar Chart

About this component

Radar Chart

Recharts radar chart on the shadcn ChartContainer: multi-series polar areas with a polar grid, angle axis, adjustable fill opacity, optional legend, and a theme-aware tooltip. Config-driven colors via --chart tokens.

Usage

The import and the props worth knowing about, in one place.

import { RadarChart } from "@/components/beste/component/radar-chart";

<RadarChart
  angleKey="metric"
  config={{
    desktop: { label: "Desktop", color: "var(--chart-1)" },
    mobile: { label: "Mobile", color: "var(--chart-2)" },
  }}
  data={[
    { metric: "Speed", desktop: 186, mobile: 120 },
    { metric: "Comfort", desktop: 237, mobile: 190 },
  ]}
/>

Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

Usage
import { RadarChart } from "@/components/beste/component/radar-chart";

<RadarChart
  angleKey="metric"
  config={{"desktop":{"label":"Desktop","color":"var(--chart-1)"},"mobile":{"label":"Mobile","color":"var(--chart-2)"}}}
  data={[{"metric":"Speed","desktop":186,"mobile":120},{"metric":"Reliability","desktop":305,"mobile":200},{"metric":"Comfort","desktop":237,"mobile":190},{"metric":"Safety","desktop":273,"mobile":230},{"metric":"Efficiency","desktop":209,"mobile":160},{"metric":"Design","desktop":264,"mobile":220}]}
/>

Keyboard and gestures

Every one of these is in the component already. They are listed because a props table cannot mention a gesture, so nothing else on this page can tell you they exist.

Hover the webThe tooltip reads every series on the nearest axis.

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
data*Array<Record<string, string | number>>
config*ChartConfigSeries config keyed by data field: { desktop: { label, color } }
angleKey*stringField placed around the polar angle axis
fillOpacitynumberFill opacity for each radar area (0 = outline only)
showLegendboolean
classNamestring

More Chart components

View all Chart

Line Chart

Recharts line chart on the shadcn ChartContainer: multi-series lines with configurable curve, optional dots, active-dot hover, grid, y-axis, legend, and a theme-aware tooltip. Config-driven colors via --chart tokens.

Area Chart

Recharts area chart on the shadcn ChartContainer: multi-series with per-series gradient fills, optional stacking, grid, y-axis, legend, and a theme-aware tooltip. Config-driven colors via --chart tokens.

Bar Chart

Recharts bar chart on the shadcn ChartContainer: grouped or stacked multi-series bars with rounded corners, optional grid, y-axis, legend, and a dashed-indicator tooltip. Config-driven colors via --chart tokens.

Radial Chart

Recharts radial gauge on the shadcn ChartContainer: a single value plotted as a proportional ring with a muted track and a centered percentage plus caption. Ideal for progress, targets, and completion rates.

Pie Chart

Recharts pie/donut chart on the shadcn ChartContainer: per-slice colors from config, adjustable donut hole, optional legend, and a name-keyed tooltip. Config-driven colors via --chart tokens.