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.
Unfortunately, activation email could not send to your email. Please try again.

How to implement Multiple Axes in chart ?

 

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

  

Article ID: Published Date: Last Revised Date: Platform: Control:
31 04/30/2011 07/10/2014 Windows Forms Chart
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.