Example of Donut in Javascript Chart Control


This donut chart example visualizes mobile browser statistics. The center label shows information about the data in the donut series.

More Details...


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 hoverTextFormat property. Injecting Module The Charts component’s features are segregated into individual feature modules. To use the pie series feature, we need to inject PieSeries module using AccumulationChart.Inject(PieSeries) method. More information about the donut series can be found in this documentation section.