Radar

@nivo/radarradialsvgisomorphic

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…

string | Function | string[]optionaldefault:{"scheme":"nivo"}
nivo

Defines how to compute colors.

numberoptionaldefault:0.25

Shape fill opacity.

stringoptionaldefault:'normal'
multiply

Defines CSS mix-blend-mode for shapes.

supportsvgapi
numberoptionaldefault:2
px

Shape border width.

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

Method to compute border color.

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
Motion
booleanoptionaldefault:true
   

Enable/disable transitions.

supportsvgapi
string | objectoptionaldefault:'gentle'
wobbly

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

supportsvgapi