We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the use of StartAngle property in ejChart?


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.

The pie with start angle 0

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.

The pie with start angle 90

Figure 2: Pie chart with start angle 90

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile