RadialBar

@nivo/radial-barradialbar

A radial bar chart.

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 ResponsiveRadialBar.

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

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

Chart data.

'auto' | numberoptionaldefault:'auto'

If 'auto', the max value is derived from the data, otherwise use a static value.

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

Optional formatter for values (y).

numberrequired

Chart width.

numberrequired

Chart height.

objectoptional
px
px
px
px

Chart margin.

numberoptionaldefault:0
°

Start angle (in degrees).

numberoptionaldefault:270
°

End angle (in degrees).

numberoptionaldefault:0.3

Donut if greater than 0. Value should be between 0~1 as it's a ratio from outer radius.

numberoptionaldefault:0.2

Padding between each ring (ratio).

numberoptionaldefault:0
°

Padding between each bar.

numberoptionaldefault:0
px

Rounded corners.

Style
Tracks
Grid & Axes
Labels
Customization
Interactivity
Legends
Accessibility
Motion