Autoscaling the Left axis based on visible Series Y values.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Snarkle
Newbie
Newbie
Posts: 91
Joined: Wed Jun 30, 2010 12:00 am

Autoscaling the Left axis based on visible Series Y values.

Post by Snarkle » Wed Jul 07, 2010 12:32 am

Greetings.

I would like to have the option of having a Y axis that can scale in runtime based upon the Y maximum and minimum values of the 'visible' section of the series.

example: Scrolling left or right on a chart that is zoomed and having the Left axis adjust accordingly to only the visible Ymax and Ymin.

I looked in the example for the realtime chart as the Left axis does update exactly like this but there is nothing obvious in that example that suggests how this is done. in Fact I think this is done by constantly changing the entire series maximums and minimums.

Is there a property that will make an axis update its bounds based upon the values of the 'visible' portion of the series (such as when zoomed).
If not is there a property that knows the max and min values of a zoomed section and I can programatically update the axis using the scroll event.

regards Phil.
--------------------
Cheers Phil.

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

Re: Autoscaling the Left axis based on visible Series Y values.

Post by Narcís » Wed Jul 07, 2010 1:30 pm

Hi Phil,

You could do something as the local minimum and maximum example suggested here. You could use series' FirstVisibleIndex and LastVisibleIndex as first and last arguments.

Hope this helps.
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