This React donut chart example visualizes mobile browser statistics. The center label shows information about the data in the donut series.
In this example, you can see how to render and configure a donut chart. To create a donut in the pie series, we use the
innerRadius property. The
centerLabel property allows you to specify the default text that will be rendered in the center. You can also customize the text that will render when the mouse pointer is hovered over one of the donut slices using the
The Charts component’s features are segregated into individual feature modules. To use pie chart, we need to inject
PieSeries module into
More information about the donut series can be found in this documentation section.