Docs/Polar Components/PolarGrid

PolarGrid

PolarGrid draws the background grid for a polar chart: concentric polygons or circles (via radius ticks) and radial lines (via angle ticks). It helps readers estimate data values and is typically placed before series in the chart.

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

<RadarChart data={data}>
  <PolarGrid strokeDasharray="3 3" />
  <PolarAngleAxis dataKey="name" />
  <PolarRadiusAxis />
  <Radar dataKey="value" />
</RadarChart>;
RadarChart
radar-basic.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
gridType"polygon" | "circle""polygon"Shape of concentric rings (polygon for radar, circle for gauge-like charts)
radialLinesbooleantrueShow radial lines from center to outer edge
strokestring"#ccc"Line color
strokeWidthnumber | string1Line thickness
strokeDasharraystring | number—Dash pattern (e.g. "3 3" for dashes)
fillstring"none"Background fill color of the outer ring
fillOpacitynumber | string—Opacity of the fill (0–1)
angleAxisIdstring | number0ID of the PolarAngleAxis to read ticks from
radiusAxisIdstring | number0ID of the PolarRadiusAxis to read ticks from

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

Notes

  • gridType="polygon" draws concentric polygons (one per radius tick), ideal for multi-axis radar.
  • gridType="circle" draws concentric circles, common for gauge or circular layouts.
  • radialLines={true} draws lines from center to the outer circle (one per angle tick).
  • Combine with strokeDasharray to style dashed grid lines.
  • The grid respects the ticks of the configured angle and radius axes.

See also