Automatic axis minimum, but custom maximum

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Automatic axis minimum, but custom maximum

Post by Christo Zietsman » Fri Oct 10, 2008 8:17 am

Is it possible to keep the axis minimum calculated automatically, but set the maximum to a custom value? I've had some issues with the polar series and to solve it I had to set both the minimum and maximum to get the desired effect.

I'm only showing the right axis and therefore set the minimum/maximum on that axis, but that didn't work. Now I'm setting minimum/maximum on the left axis, but only showing the right axis.

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 Oct 10, 2008 9:09 am

Hi Christo,

Yes, you can use something like this:

Code: Select all

			tChart1.Axes.Bottom.AutomaticMaximum = true;
			tChart1.Axes.Bottom.AutomaticMinimum = false;
			tChart1.Axes.Bottom.Minimum = -5;
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