Recent

Author Topic: 2 charts only one will zoom  (Read 2449 times)

ronhud

  • Jr. Member
  • **
  • Posts: 84
2 charts only one will zoom
« on: July 13, 2021, 11:05:30 am »
I have 2 charts on one form - data displays ok on both but only the first chart will respond to the built in zoom.   I have tried working with a Toolset but it doesnt make any difference.   I have auto focus enabled on both charts but the focus doesnt seem to shift when I move the mouse from one chart to the other. 

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: 2 charts only one will zoom
« Reply #1 on: July 13, 2021, 11:43:54 am »
Since the built-in zoom uses an internal ChartToolset this kind of zooming (and panning in the same way) is lost when you attach your own toolset to a chart. In this case you should add a ZoomDragTool to the toolset, set its Shift to ssLeft; and to restore the default panning you should add a PanDragtool and set its Shift to ssRight.

There are also Chart.AllowZoom and AllowPanning property which you might have unchecked incidentally.

ronhud

  • Jr. Member
  • **
  • Posts: 84
Re: 2 charts only one will zoom
« Reply #2 on: July 13, 2021, 01:53:55 pm »
Thanks for response.    The second chart was not responding to any clicks etc - I have enabled the chart when the form is activated and things now work.

 

TinyPortal © 2005-2018