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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to implement Multiple Axes in chart ?

Platform: WinForms |
Control: Chart |
Published Date: April 30, 2011 |
Last Revised Date: June 25, 2019

 

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

  

2X faster development

The ultimate WinForms 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