Page 1 of 1

Autoscaling the Left axis based on visible Series Y values.

Posted: Wed Jul 07, 2010 12:32 am
by 8751509
Greetings.

I would like to have the option of having a Y axis that can scale in runtime based upon the Y maximum and minimum values of the 'visible' section of the series.

example: Scrolling left or right on a chart that is zoomed and having the Left axis adjust accordingly to only the visible Ymax and Ymin.

I looked in the example for the realtime chart as the Left axis does update exactly like this but there is nothing obvious in that example that suggests how this is done. in Fact I think this is done by constantly changing the entire series maximums and minimums.

Is there a property that will make an axis update its bounds based upon the values of the 'visible' portion of the series (such as when zoomed).
If not is there a property that knows the max and min values of a zoomed section and I can programatically update the axis using the scroll event.

regards Phil.

Re: Autoscaling the Left axis based on visible Series Y values.

Posted: Wed Jul 07, 2010 1:30 pm
by narcis
Hi Phil,

You could do something as the local minimum and maximum example suggested here. You could use series' FirstVisibleIndex and LastVisibleIndex as first and last arguments.

Hope this helps.