Skip to main content
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.

Usage

Props

Data

DataKey<any>
required
The key of data values displayed on the radar chart.Can be a string, number, function, or array path.
string | number
The name of the radar data, used for tooltips and legends.

Axes

string | number
default:"0"
The id of the angle axis which this radar uses.
string | number
default:"0"
The id of the radius axis which this radar uses.

Appearance

string
The fill color of the radar polygon.
string
The stroke color of the radar polygon.
number
The stroke width of the radar polygon.
number
The opacity of the fill color, from 0 to 1.

Dots

boolean | object | ReactElement | function
default:"false"
Renders a circle element at each data point.Options:
  • false: no dots are drawn
  • true: renders dots with default settings
  • object: props merged with internal calculated props of each dot
  • ReactElement: custom dot element
  • function: render function for custom dot
boolean | object | ReactElement | function
default:"true"
The dot element displayed when a data point is active (hovered/focused).Same options as the dot prop.

Labels

boolean | object | ReactElement | function
default:"false"
Renders one label for each point.Options:
  • true: renders default labels
  • false: no labels are rendered
  • object: props for LabelList component
  • ReactElement: custom label element
  • function: render function for custom label

Behavior

boolean
default:"false"
If true, the radar will not be rendered.Hidden elements are still visible in the legend.
boolean
If true, connects data points across null values in the data.

Custom shape

ReactElement | function
Custom shape for the radar polygon.Can be a React element or a function that receives radar props and returns a React element.

Animation

boolean | 'auto'
default:"auto"
If false, animation will be disabled.If “auto”, animation is disabled in SSR and respects the user’s prefers-reduced-motion preference.
number
default:"0"
Specifies when the animation should begin, in milliseconds.
number
default:"1500"
Specifies the duration of animation, in milliseconds.
string
default:"ease"
The type of easing function.Options: ‘ease’, ‘ease-in’, ‘ease-out’, ‘ease-in-out’, ‘linear’
function
Callback fired when animation starts.
function
Callback fired when animation ends.

Display

LegendType
default:"rect"
The type of icon in the legend.Options: ‘line’, ‘plainline’, ‘square’, ‘rect’, ‘circle’, ‘cross’, ‘diamond’, ‘star’, ‘triangle’, ‘wye’, ‘none’
TooltipType
Valid tooltip types for this graphical item.
number
default:"100"
The z-index of the radar polygon.Higher values render on top of lower values.

Interaction

function
Event handler for mouse enter events on the radar polygon.Signature: (props: InternalRadarProps, e: React.MouseEvent) => void
function
Event handler for mouse leave events on the radar polygon.

Other

string
CSS class name for the radar element.