Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Zooming on button click using TChart

delphi tchart

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 AlecR


    CC Lurker

  • New Member
  • Pip
  • 4 posts

Posted 25 December 2014 - 12:48 PM

Hi all,


I am using TChart to create graphs.


I have this procedure:

procedure TfrmGraphingMode.btnZoomInClick(Sender: TObject);

What I am trying to do is to zoom in the graph on the click of btnZoomIn. I think a zoom of 10% per click would be a good start.

How would I go about doing this? Zooming out is easier but I am having trouble getting zooming in to work. chtGraph.ZoomPercent, for example, doesn't do anything.


If a kind person could explain that would be fantastic :)

#2 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 28 December 2014 - 12:19 PM

Look for zooming drag in in this wiki and you'll find out how to work the zoom in rectangle extent.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download