I have a chartcomposite with a range zooming turned off and domain zooming turned on. The code is
chartComposite.setRangeZoomable(false);
chartComposite.setDomainZoomable(true);
As seen in the image below the zoom rectangle shows up fine.
But when I make the chart window smaller, the zoom rectangle shows up incorrectly as shown below. Any pointers to why this is happening ? This does not happen when using AWT ChartPanel.
ChartComposite with zoom rectangle
Re: ChartComposite with zoom rectangle
I was able to solve my own problem. Turns out that ChartComposite has a constructor that is much more complex but allows you to set the minimum chart height and width. Using that with a minimum height of 0 solved this problem.