Native Solid 2 fork of solid-recharts (MIT, © Thomas Guehenneux), derived from Recharts (MIT, © recharts). Adapted documentation; neither project endorses this fork.

RadarChart

RadarChart is the polar container for Radar series. It owns the chart's layout, scales, and interaction state; children like PolarAngleAxis, PolarRadiusAxis and Radar register themselves into it.

Team skill comparisonSpeedDesignDocsTestsA11y
() => {
const data = [
{ subject: "Speed", a: 120, b: 110 },
{ subject: "Design", a: 98, b: 130 },
{ subject: "Docs", a: 86, b: 130 },
{ subject: "Tests", a: 99, b: 100 },
{ subject: "A11y", a: 85, b: 90 },
];
return <ResponsiveContainer width="100%" height={300} initialDimension={{ width: 560, height: 300 }}>
<RadarChart data={data} outerRadius="75%" title="Team skill comparison">
<PolarGrid stroke="var(--gray-a6)" />
<PolarAngleAxis dataKey="subject" />
<Radar name="Team A" dataKey="a" stroke="var(--accent-9)" fill="var(--accent-9)" fillOpacity={0.4} />
<Radar name="Team B" dataKey="b" stroke="var(--teal-9)" fill="var(--teal-9)" fillOpacity={0.3} />
<Tooltip />
<Legend />
</RadarChart>
</ResponsiveContainer>;
}

Props

PropTypeDefaultDescription
dataobject[]—Source data array, one entry per angle position
width, heightnumber—Fixed size (omit when inside ResponsiveContainer)
margin{ top, right, bottom, left }{ 5, 5, 5, 5 }Space around the plot area
syncIdstring—Sync tooltip across charts sharing the id
cx, cynumber | string"50%"Center position of the radar
startAngle, endAnglenumber90, -270Angle range swept by the radar
onClick, onMouseMove, …function—Chart-level mouse events with the active payload

The base props follow the Recharts 3.9.2 RadarChart API (reference commit b3451050) that solid-recharts tracks; see the Recharts RadarChart reference. The next-suite release scope lists selected adaptations, not full Recharts 3.10.1 parity.

Notes

  • The default layout is "centric", positioning the radar at the chart center.
  • Multiple Radar children render overlaid on the same polar grid.
  • Use PolarAngleAxis and PolarRadiusAxis to label the angle and radius dimensions.

See also

  • Radar — the series component and its dot/label options
  • PolarAngleAxis · PolarRadiusAxis
  • Tooltip · Legend