Find the visible max and min extents of an axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Find the visible max and min extents of an axis

Post by Metman » Fri Dec 21, 2012 9:51 am

Hi

I know I can detect the maximum and minimum values of the bottom axis (or any axis) by using

Code: Select all

Chart.BottomAxis.Minimum
But how do I find the visible max and min values and not the whole extent of the series?

Bruce.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Find the visible max and min extents of an axis

Post by Yeray » Fri Dec 21, 2012 11:57 am

Hi Bruce,

I've made an example project to show you how to use FirstValueIndex and LastValueIndex to calculate the Minimum and Maximum values in the series.
MinAndMax.png
MinAndMax.png (26.24 KiB) Viewed 5502 times
MinAndMax.zip
(2.07 KiB) Downloaded 518 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Find the visible max and min extents of an axis

Post by Metman » Fri Dec 21, 2012 12:40 pm

Hi Yeray

That's very kind of you - have a great Christmas!

Bruce.

PS That's if today isn't the end of the world :?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Find the visible max and min extents of an axis

Post by Yeray » Fri Dec 21, 2012 1:01 pm

Hi Bruce,

Have a nice one too! (Either Christmas or travel to the other world) :D
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply