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..
Asked
Active
Viewed 5,587 times
1 Answers
11
Try
getYourChartPanel().setDomainZoomable(false);
getYourChartPanel().setRangeZoomable(false);

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
-
1That would have been helpful to note in original question. – I82Much Oct 30 '09 at 14:14
-
1I found that ChartComposite has setDomainZoomable() and setRangeZoomable() methods too.. – penguru Nov 03 '09 at 07:45