Renders radial bar chart elements in a polar chart. The RadialBar component displays data as circular bars that radiate from the center.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Props
Data
The key of data values displayed on the radial bar chart.Can be a string, number, function, or array path.
The name of the radial bar data, used for tooltips and legends.
Axes
The id of the angle axis which this radial bar uses.
The id of the radius axis which this radial bar uses.
Dimensions
The width or height of each bar.If not specified, the size is calculated automatically based on barCategoryGap, barGap, and the number of bar groups.
The maximum size of each bar.
The minimum size in pixels for a bar to be rendered.Useful for ensuring small values are still visible.
Appearance
The fill color of the radial bars.
The stroke color of the radial bars.
The stroke width of the radial bars.
The radius of the rounded corners of each bar.
If true, the rounded corner is on the outer edge of the bar.
If true, forces the corner radius even when the bar is too small.
Background
Renders a background for each bar.Options:
false: no backgroundtrue: renders default backgroundobject: props for background rectangle
Labels
Renders one label for each data point.Options:
true: renders default labelsfalse: no labels are renderedobject: props for LabelList componentReactElement: custom label elementfunction: render function for custom label
Behavior
If true, the radial bar will not be rendered.Hidden elements are still visible in the legend.
The id of the group which this radial bar should be stacked with.Radial bars with the same stackId will be stacked together.
Custom shapes
Custom shape for rendering radial bar sectors.Can be a React element, object, or function that receives sector props.
Custom shape rendered when a sector is activated (by mouse hover, keyboard, etc.).
Animation
If false, animation will be disabled.If “auto”, animation is disabled in SSR and respects the user’s prefers-reduced-motion preference.
Specifies when the animation should begin, in milliseconds.
Specifies the duration of animation, in milliseconds.
The type of easing function.Options: ‘ease’, ‘ease-in’, ‘ease-out’, ‘ease-in-out’, ‘linear’
Callback fired when animation starts.
Callback fired when animation ends.
Display
The type of icon in the legend.Options: ‘line’, ‘plainline’, ‘square’, ‘rect’, ‘circle’, ‘cross’, ‘diamond’, ‘star’, ‘triangle’, ‘wye’, ‘none’
Valid tooltip types for this graphical item.
The z-index of the radial bars.Higher values render on top of lower values.
Interaction
Event handler for click events on radial bar sectors.Signature:
(data: RadialBarDataItem, index: number, e: React.MouseEvent) => voidEvent handler for mouse enter events on sectors.
Event handler for mouse leave events on sectors.
Other
CSS class name for the radial bar element.