Docs/Polar Components/RadialBar

RadialBar

RadialBar renders one sector per data entry as a colored bar, radiating from the center. Each bar spans from an inner to outer radius at an angle determined by the angle axis. Use inside a RadarChart with PolarAngleAxis and PolarRadiusAxis.

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

<RadarChart data={data} layout="radial">
  <PolarAngleAxis dataKey="name" />
  <PolarRadiusAxis />
  <RadialBar dataKey="value" fill="#8884d8" />
</RadarChart>;
RadialBarChart
radial-bar-basic.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
dataKeystring | function—Key or accessor to extract the bar height value
namestring | number—Series name (shown in legend and tooltip)
fillstring—Bar color
fillOpacitynumber | string—Opacity of the bar fill (0–1)
strokestring—Bar outline color
backgroundboolean | object | function—Render a background sector behind each bar
minAnglenumber—Minimum angle width per bar (degrees)
labelboolean | object | functionfalseRender labels on bars
cornerRadiusnumber | string—Corner radius for bar edges
activeShapeobject | function—Shape rendered on hover (merges props or calls function)
isAnimationActiveboolean | "auto""auto"Animate bars on mount/data change
animationDurationnumber1500Animation duration in milliseconds
animationEasingstring"ease"Easing function name
onClick, onMouseEnter, …function—Per-bar event handlers, called (barData, index, event)

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

Notes

  • dataKey is required and should reference a numeric field.
  • Bars animate from the center outward on first render.
  • Use background={true} to show a full-size sector behind each bar for context.
  • label can be a function: label={(entry) => entry.value}.
  • Use <Cell> children to override fill/stroke per bar.
  • Event handlers receive the bar data item, index, and native event.

See also