Docs/Polar Components/Radar

Radar

Radar plots data points on a polar grid, connecting them with a polygon. Each point corresponds to a category on the angle axis and a value on the radius axis. Use inside a RadarChart with PolarAngleAxis and PolarRadiusAxis.

import {
  Radar,
  RadarChart,
  PolarGrid,
  PolarAngleAxis,
  PolarRadiusAxis,
  ResponsiveContainer,
} from "solid-recharts";

<RadarChart data={data}>
  <PolarGrid />
  <PolarAngleAxis dataKey="category" />
  <PolarRadiusAxis />
  <Radar dataKey="value" stroke="#8884d8" fill="#8884d8" fillOpacity={0.6} />
</RadarChart>;
RadarChart
radar-basic.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
dataKeystring | function—Key or accessor to extract values for the radar series
namestring | number—Series name (shown in legend and tooltip)
fillstring—Fill color of the polygon area
fillOpacitynumber | string0.6Opacity of the fill (0–1)
strokestring—Outline color of the polygon
strokeWidthnumber | string2Thickness of the outline
dotboolean | object | functionfalseRender points at each vertex; true, object, or render function
activeDotboolean | object | functiontruePoint style on hover (true uses default, object merges, function renders)
labelboolean | object | functionfalseRender labels at each point
isAnimationActiveboolean | "auto""auto"Animate polygon on mount/data change
animationDurationnumber1500Animation duration in milliseconds
animationEasingstring"ease"Easing function name (e.g. "ease", "linear")

All other recharts Radar props are supported; see the recharts Radar docs for the full matrix.

Notes

  • dataKey is required and should reference a numeric field in your data.
  • fill without fillOpacity renders opaque; set opacity for transparency.
  • The polygon animates from the chart center on first render.
  • Use dot and activeDot to style the vertex points (similar to Line series).
  • label can be a function: label={(entry) => entry.value}.

See also