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)