views:

286

answers:

1

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..

+1  A: 

Try

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

See setDomainZoomable() and setRangeZoomable()

Brian Agnew
I'm not using ChartPanel, I'm using ChartComposite for SWT. ChartConposite does not have setDomainZoomable() and setRangeZoomable() methods..
penguru
That would have been helpful to note in original question.
I82Much
I found that ChartComposite has setDomainZoomable() and setRangeZoomable() methods too..
penguru