Page 1 of 1

FirstDisplayedIndex & Zooming

Posted: Mon Aug 31, 2020 9:52 am
by 16487191
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

Re: FirstDisplayedIndex & Zooming

Posted: Mon Aug 31, 2020 5:04 pm
by 16487191
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.

Re: FirstDisplayedIndex & Zooming

Posted: Tue Sep 01, 2020 6:04 am
by yeray
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.