Pie and Donut in TypeScript 3D Circular Chart control
18 Nov 20181 minute to read
Pie chart
To render a pie series, inject the PieSeries3D module using CircularChart3D.Inject(PieSeries3D) method.
Radius customization
By default, the radius of the pie series will be 80% of the size, which is the minimum of the 3D Circular Chart’s width and height. You can customize this by using the radius property of the series.
Various radius pie chart
You can assign different radii to each slice of the pie by fetching the radius from the data source and using it with the radius property in the series.
Donut chart
To achieve a donut in the pie series, customize the innerRadius property of the series. By setting a value greater than 0%, a donut will appear. The innerRadius property takes value from 0% to 100% of the pie radius.
Text and fill color mapping
The text and the fill color from the data source can be mapped to the 3D Circular Chart using pointColorMapping in the series and name in the data label, respectively.
Customization
Individual points in pie chart can be customized using the pointRender event.