Page 1 of 1

Zooming with Custom Axis

Posted: Mon Jan 19, 2009 11:13 am
by 9081488
Using TeeChart V6 Active X with VB.net

I have a project with a Vertical and Horizontal axis. I have added a custom axis and when the user zooms on the graph I want all the axis to zoom. Currently I zoom and only the vertical axis zooms.

Posted: Mon Jan 19, 2009 11:42 am
by narcis
Hi JF,

Zooming is not supported on custom axes. Please read this link on how to zoom custom axes. It's a Delphi item but sames applies to other TeeChart versions.

Thanks in advance.

Posted: Mon Jan 19, 2009 11:50 am
by 9081488
Thanks for quick response but I don't have

chart.IZoom.Y1

I have chart.Zoom but not y1.....

I also don't have GetVertAxis.

Any help is gratefully recieved.....:)

Posted: Mon Jan 19, 2009 11:59 am
by 9081488
Using the example you showed me,

I have set the min and max of my custom axis to the min and max of the Left axis in the OnZoom property

and in the OnUndoZoom set the custom back to Automatic.

Seems to work ok - still testing !!!

Posted: Mon Jan 19, 2009 12:17 pm
by 9081488
That does work, but would be good if someone could tell me how to zoom on individual series

Posted: Mon Jan 19, 2009 1:54 pm
by narcis
Hi JF,

For zooming individual series you should have an axes set for that series and only zoom those axes.