Skip to main content

Donut Chart

Show the parts of a whole as a ring, with a legend.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
dataDonutChartDatum[]-
ariaLabelstring-What the chart shows, for screen readers and its table.
What the chart shows, for screen readers and its table.
totalnumber-
centerValuestring-The large text in the middle, such as a percentage.
The large text in the middle, such as a percentage.
centerLabelstring-A line under the middle text.
A line under the middle text.
format(value: number) => string-How a value reads in the middle on hover and in the table.
How a value reads in the middle on hover and in the table.
classNamestring-