Radar

@nivo/radarradial

Generates a radar chart from an array of data. Note that margin object does not take grid labels into account, so you should adjust it to leave enough room for it.

The responsive alternative of this component is ResponsiveRadar.

This component is available in the @nivo/api, see sample or try it using the API client.

See the dedicated guide on how to setup legends for this component.

Actions Logs
Start interacting with the chart to log actions
Base
Datum[]required

Chart data.

stringrequired

Key to use to index the data.

string[]required

Keys to use to determine each serie.

number | 'auto'optionaldefault:'auto'
auto

Maximum value.

string | (value: number) => stringoptional
open editor

Optional formatter for values.

stringoptionaldefault:'linearClosed'
linearClosed

Curve interpolation.

numberrequired

Chart width.

numberrequired

Chart height.

objectoptional
px
px
px
px

Chart margin.

Style
Themeoptional

Define style for common elements such as labels, axes…

OrdinalColorScaleConfigoptionaldefault:{"scheme":"nivo"}
Categorical: Nivo

Define chart's colors.

numberoptionaldefault:0.25

Shape fill opacity.

CssMixBlendModeoptionaldefault:'normal'
multiply

Define CSS mix-blend-mode for layers.

supportsvgapi
numberoptionaldefault:2
px

Shape border width.

string | object | Functionoptionaldefault:{"from":"color"}
inheritthemecustom
inherited property
color
modifiers
No modifier.

Method to compute border color.

object[]optional

Define patterns and gradients.

supportsvgapi
object[]optional

Define rules to apply patterns and gradients

supportsvgapi
Grid
numberoptionaldefault:5

Number of levels to display for grid

stringoptionaldefault:'circular'
circular

Determine shape of the grid.

Functionoptional

Grid label.

supportsvgapi
numberoptionaldefault:16
px

Label offset from outer radius.

Dots
booleanoptionaldefault:true
   

Enable/disable dots.

Functionoptional

Overrides default dot circle.

supportsvgapi
numberoptionaldefault:6
px

Size of the dots.

string | object | Functionoptionaldefault:{"from":"color"}
inheritthemecustom
theme property
background

Method to compute dots color.

numberoptionaldefault:0
px

Width of the dots border.

string | object | Functionoptionaldefault:{"from":"color"}
inheritthemecustom
inherited property
color
modifiers
No modifier.

Method to compute dots border color.

booleanoptionaldefault:false
   

Enable/disable dots label.

string | ((point: PointData) => string | number)optionaldefault:'formattedValue'
formattedValue

Dot label.

supportsvgapi
numberoptionaldefault:-12
px

Label Y offset from dot shape.

Customization
(RadarLayerId | FunctionComponent<RadarCustomLayerProps>)[]optionaldefault:['grid', 'layers', 'slices', 'dots', 'legends']

Defines the order of layers and add custom layers.

supportsvgapi
Interactivity
booleanoptionaldefault:true
   

Enable/disable interactivity.

supportsvgapi
FunctionComponent<RadarSliceTooltipProps>optional

Override default slice tooltip.

supportsvgapi
(node, event) => voidoptional

onClick handler, it receives target node data and mouse event.

supportsvgapi
Motion
booleanoptionaldefault:true
   

Enable/disable transitions.

supportsvgapi
string | objectoptionaldefault:'gentle'
wobbly

Motion config for react-spring, either a preset or a custom configuration.

supportsvgapi