5

Is there an easy way to disable zoom in/out feature for XYPlot which is drawn in ChartComposite ? Overriding the zoom methods for XYPlot will be a solution but I wonder if there is an easy way..

penguru
  • 4,342
  • 11
  • 46
  • 56

1 Answers1

11

Try

getYourChartPanel().setDomainZoomable(false);
getYourChartPanel().setRangeZoomable(false);

See setDomainZoomable() and setRangeZoomable()

Brian Agnew
  • 268,207
  • 37
  • 334
  • 440
  • I'm not using ChartPanel, I'm using ChartComposite for SWT. ChartConposite does not have setDomainZoomable() and setRangeZoomable() methods.. – penguru Oct 30 '09 at 13:53
  • 1
    That would have been helpful to note in original question. – I82Much Oct 30 '09 at 14:14
  • 1
    I found that ChartComposite has setDomainZoomable() and setRangeZoomable() methods too.. – penguru Nov 03 '09 at 07:45