Renders a radar chart polygon in a polar chart. The Radar component displays data as a polygon where each vertex represents a data point on a radial axis.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 radar chart.Can be a string, number, function, or array path.
The name of the radar data, used for tooltips and legends.
Axes
The id of the angle axis which this radar uses.
The id of the radius axis which this radar uses.
Appearance
The fill color of the radar polygon.
The stroke color of the radar polygon.
The stroke width of the radar polygon.
The opacity of the fill color, from 0 to 1.
Dots
Renders a circle element at each data point.Options:
false: no dots are drawntrue: renders dots with default settingsobject: props merged with internal calculated props of each dotReactElement: custom dot elementfunction: render function for custom dot
The dot element displayed when a data point is active (hovered/focused).Same options as the
dot prop.Labels
Renders one label for each 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 radar will not be rendered.Hidden elements are still visible in the legend.
If true, connects data points across null values in the data.
Custom shape
Custom shape for the radar polygon.Can be a React element or a function that receives radar props and returns a React element.
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 radar polygon.Higher values render on top of lower values.
Interaction
Event handler for mouse enter events on the radar polygon.Signature:
(props: InternalRadarProps, e: React.MouseEvent) => voidEvent handler for mouse leave events on the radar polygon.
Other
CSS class name for the radar element.