grid with 2 custom x-axes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
joachim
Newbie
Newbie
Posts: 9
Joined: Thu Feb 05, 2004 5:00 am

grid with 2 custom x-axes

Post by joachim » Thu Feb 17, 2005 10:03 pm

How can I assign a separate grid to two separate Y-axis? I have a chart that has a custom Y-axis from 80-100% and the default Y-Axis from 0-80%. The first Y-Axis also has a custom X-Axis. But the grid of both chart areas reach over the whole chart. How can I change this to have one grid in the lower part (80-100%) that will only cover 80-100% and the other grid cover 0-80% of the Y-Area?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 18, 2005 9:46 am

Hi Joachim,

You can do something like this:

Code: Select all

			colorGrid1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Bottom;
			colorGrid1.CustomVertAxis= axis1;

			colorGrid2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
			colorGrid2.CustomHorizAxis= axis2;

			tChart1.Aspect.ApplyZOrder = false;
Where axis1 is your vertical custom axis from 80-100% and axis2 is your custom bottom axis.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply