Articles in this section
Category / Section

How do I position the secondary axis so that I can avoid intersection?

1 min read

 

The location of the secondary axis can be set manually using the Location property of the ChartAxis class.

Before setting the loction, set the LocationType property as Set

The following code snippet illustrates this:

C#

this.secXAxis.LocationType = ChartAxisLocationType.Set;

this.secXAxis.Location = new PointF(this.chartControl1.PrimaryXAxis.Location.X ,this.chartControl1.PrimaryXAxis.Location.Y + 20 );

VB

Me.secXAxis.LocationType = ChartAxisLocationType.Set

Me.secXAxis.Location = New PointF(Me.chartControl1.PrimaryXAxis.Location.X, Me.chartControl1.PrimaryXAxis.Location.Y + 20)

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