FirstDisplayedIndex & Zooming

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

FirstDisplayedIndex & Zooming

Post by BruceC » Mon Aug 31, 2020 9:52 am

Hi,

After zooming I was expecting the First/LastDisplayedIndex of a series to have changed but it is not. I need to get the first and last visible YValues in the Charts AfterDrawEvent. How do I do this?

Thanks

BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

Re: FirstDisplayedIndex & Zooming

Post by BruceC » Mon Aug 31, 2020 5:04 pm

From the examples I worked out that I had to interpolate the YValue from the XValue at the minimum and maximum bottom axes values.

Thanks anyway, and thanks for the great examples.

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

Re: FirstDisplayedIndex & Zooming

Post by Yeray » Tue Sep 01, 2020 6:04 am

Hello Bruce,

I'm glad to hear you fond how to solve it.
Don't hesitate to let us know if you find any problem with it.
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