Docs/Charts/RadialBarChart

RadialBarChart

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

import {
  RadialBarChart,
  RadialBar,
  PolarGrid,
  PolarAngleAxis,
  PolarRadiusAxis,
} from "solid-recharts";

<RadialBarChart data={data} width={500} height={300}>
  <PolarGrid strokeDasharray="3 3" />
  <PolarAngleAxis dataKey="name" />
  <PolarRadiusAxis />
  <RadialBar dataKey="value" fill="#8884d8" />
</RadialBarChart>;
RadialBarChart
radial-bar-basic.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
dataobject[]—Source data array, one entry per radial bar
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 chart
startAngle, endAnglenumber0, 360Angle range swept by the bars
onClick, onMouseMove, …function—Chart-level mouse events with the active payload

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

Notes

  • The default layout is "radial", rendering bars radiating outward from the center.
  • Each data entry renders as one radial bar sector.
  • Use PolarAngleAxis and PolarRadiusAxis to label the angle and radius dimensions.
  • Set background on the <RadialBar> child to render background sectors behind each bar.

See also