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

What are the types of axis supported by chart? Do we have the option to display the axes in reverse display?

 

Chart Axes has two types of basic axes.They are

1 . Primary Axis

2. Secondary Axis

Primary Axis is the default axis. Secondary Axis is which we add it programatically. Secondary Axis can be created using ChartAxis class. We can also draw the axes into opposite direction. For X axis we need to set OpposedPosition property to true. For Y axis we need to set Inversed property to true.

C#

// Creating secondary axis

private ChartAxis secXAxis = new ChartAxis();

this.secXAxis.RangeType = ChartAxisRangeType.Auto;

this.chartControl1.Axes.Add(this.secXAxis);

this.secXAxis.OpposedPosition = true;

this.secXAxis.Range = new MinMaxInfo(0,5,1);

// To display the axes in opposite direction

this.chartControl1.PrimaryXAxis.OpposedPosition = this.checkBox1.Checked;

this.chartControl1.PrimaryYAxis.Inversed = this.checkBox1.Checked;

VB

' Creating secondary axis

Dim secXAxis As ChartAxis = New ChartAxis()

Me.secXAxis.RangeType = ChartAxisRangeType.Auto

Me.ChartControl1.Axes.Add(Me.secXAxis)

Me.secXAxis.OpposedPosition = true

Me.secXAxis.Range = new MinMaxInfo(0,5,1)

' To display the axes in opposite direction

Me.ChartControl1.PrimaryXAxis.OpposedPosition = Me.CheckBox1.Checked

Me.ChartControl1.PrimaryYAxis.Inversed = Me.CheckBox1.Checked

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

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