Page 1 of 1

Zoom out...

Posted: Wed Oct 25, 2006 2:32 pm
by 8577300
Hello Experts!!

How can I zoom out in a tee-chart....I want do this with the right-mouse-click!! I searched in the forum but didn't find the right tip...

Bye
Thomas

Posted: Wed Oct 25, 2006 2:47 pm
by narcis
Hi Thomas,

Try using this:

Code: Select all

  Chart1.Zoom.MouseButton:=mbRight;
  Chart1.ScrollMouseButton:=mbLeft;

Posted: Mon Oct 30, 2006 6:58 am
by 8577300
Hello Narcis!!

Thank you for the lines.
But where I have to implement this lines?? OnFormShow?? On a ActionListener of a Popup over the Chart??
AND its fine when I can move the graphical results in the chart (--> scrollMouseButton) but is it also possible to allow this movements only in horizontal direction??

Thank you in advance...
Thomas

Posted: Mon Oct 30, 2006 7:20 am
by 8577300
The zoom-out-problem is solved!! I implemented the Chart1.undozoom procedure in an event of a popup...it works fine!!

Another question to zooming...

Posted: Mon Oct 30, 2006 8:12 am
by 8577300
How can I adjust the benchmark of the x-axis when I'm zoom in??
Now I set a (increment) label all 7 secs. (--> 30 secs. is the length of my x-axis of my Chart) so I have a time-label round each quarter on my x-axis.
But thats not good because its 'static'!! What I want is a 'dynamic' solution...so that I have always a label each quarter of my x-axis...nevermind if the length of my x-axis is only for example 3 secs. snip (--> maybe when I'm zoom in) or 30 min. when I want to view the whole chart.
How can I make this dynamic....and on a next step that I can set the benchmark like I want.

Please help me again...
Thomas

Posted: Tue Oct 31, 2006 11:23 am
by narcis
Hi Thomas,

By default TeeChart axes scale automatically when zooming, scrolling, etc. Are you using custom axes or custom labels?

If you use custom labels please read this FAQ item for zooming them.