Hi,
How can I zoomout a zoomedin chart on any event like button click instead of mouse drag or roll. Please suggest some solution thanks.
The default interactions to zoom out the chart are the Page Down key, which zooms out a step, and the Home key that zooms out the chart to the furthest possible. You can perform this in a button event by manipulating the charts WindowRect:
chart.WindowRect = new Rect(0,0,1,1);
Hope this helps!
-Graham
Hi Graham,
Thanks for reply. i have found the solution as follows its working:
Chart.WindowScaleHorizontal += 1;
Chart.WindowScaleVertical += 1;
Those properties are an easier way of modifying the WindowRect property. Yes, they whould work.