Articles in this section
Category / Section

What is the need of using custom origin in Chart Axis?

1 min read

 

By default the axis will calculate the origin of the axis from data contained in the series. Using the CustomOrigin property of an axes , you can change this origin. To enable the origin to be set with Origin, you have to set CustomOrigin to true.

C#

this.chartControl1.PrimaryYAxis.CustomOrigin = true;

this.chartControl1.PrimaryYAxis.Origin = chartControl1.Series[0].Points[0].YValues[0];

VB

Me.chartControl1.PrimaryYAxis.CustomOrigin = True

Me.chartControl1.PrimaryYAxis.Origin = chartControl1.Series(0).Points(0).YValues(0)

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied