What is the use of start angle property in ASP.NET MVC Chart?
The StartAngle property determines the angle to draw the segment for first point in pie and doughnut series. Segments for other points are drawn after the previous segment. In other words, StartAngle property determines the angle from which the pie or doughnut series are to be rendered. By default, the pie or doughnut series start from the center and top center co-ordinates of chart area.
CSHTML
@(Html.EJ().Chart("chart") .Title(title=>title.Text("With Start Angle 90 degree")) .Legend(leg=>leg.Visible(false)) .Series(ser=> { ser.Type(SeriesType.Pie) .StartAngle(90) .Marker(m => m.DataLabel(l => l.Visible(true) .Font(f => f.Color("white"))) ) .Points(p => { p.X("1").Y(30).Add(); p.X("2").Y(40).Add(); p.X("3").Y(50).Add(); p.X("4").Y(60).Add(); }) .Add(); } ) )
The following screenshot illustrates the pie chart with start angle 0, rendering from center and top center co-ordinates of chart area.
Figure 1: Pie chart with start angle 0
The following screenshot illustrates the pie chart with start angle 90, rendering from center and right center co-ordinates of chart area.
Figure 2: Pie chart with start angle 90
Conclusion
I hope you enjoyed learning about what is the use of start angle property in ASP.NET MVC Chart.
You can refer to our ASP.NET MVC Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC Chart example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!