Articles in this section
Category / Section

How to implement Multiple Axes in WinForms Chart ?

1 min read

In Winforms Charts, multiple Axes can be implemented by creating new axis and adding it to the chartcontrol. This is done by using ChartAxis class. You can also set the range for newly created axis and position the new axis opposite to that of the regular axis. Finally you can load the series into the new axis.

C#
private ChartAxis secXAxis = new ChartAxis();
this.chartControl1.Axes.Add(this.secXAxis);
this.chartControl1.Indexed=false;
this.secXAxis.Range = new MinMaxInfo(0, 10, 1);
this.secXAxis.OpposedPosition = true;
this.chartControl1.Series[0].XAxis = this.secXAxis;

VB
Private secXAxis As ChartAxis = New ChartAxis()
Me.chartControl1.Axes.Add(Me.secXAxis)
Me.chartControl1.Indexed=False
Me.secXAxis.Range = New MinMaxInfo(0, 10, 1)
Me.secXAxis.OpposedPosition = True
Me.chartControl1.Series(0).XAxis = Me.secXAxis

Conclusion

I hope you enjoyed learning about how to implement Multiple Axes in WinForms Chart.

You can refer to our WinForms Charts 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 WinForms Charts 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 forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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