Automatically scale left axis to visible data.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MVBobj
Newbie
Newbie
Posts: 34
Joined: Fri Jul 17, 2015 12:00 am
Contact:

Automatically scale left axis to visible data.

Post by MVBobj » Mon Aug 10, 2015 9:39 pm

Is there any way to have the left axis max and min reset to only the data currently visible on the chart instead of to the max and min of the entire series?

Thanks.

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

Re: Automatically scale left axis to visible data.

Post by Narcís » Tue Aug 11, 2015 7:30 am

Hi MVBobj,

You can calculate local minimum and maximum using the example suggested here. You could use series' FirstVisibleIndex and LastVisibleIndex as first and last arguments. This is a TeeChart .NET thread but same should apply to VCL version.
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