Page 1 of 1

Find the visible max and min extents of an axis

Posted: Fri Dec 21, 2012 9:51 am
by 10047857
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.

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

Posted: Fri Dec 21, 2012 11:57 am
by yeray
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 5436 times
MinAndMax.zip
(2.07 KiB) Downloaded 515 times

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

Posted: Fri Dec 21, 2012 12:40 pm
by 10047857
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 :?

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

Posted: Fri Dec 21, 2012 1:01 pm
by yeray
Hi Bruce,

Have a nice one too! (Either Christmas or travel to the other world) :D