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.

roll the dice
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 for non-responsive component.

numberoptional

Chart default width for responsive component.

numberrequired

Chart height for non-responsive component.

numberoptional

Chart default height for responsive component.

number (ms)optional

Debounce width/height updates for responsive component.

(dimensions: { width: number; height: number }) => voidoptional

A callback for when responsive component is resized.

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.

Ref<SVGSVGElement>optional

Ref to the chart's container. Used on this page to generate/download the chart's image via html-to-image.

Style
Tracks
Grid & Axes
Labels
Customization
Interactivity
Legends
Accessibility
Motion