What is the setting to fix the scale of y? I set the scale of y from -100 to +100 because i wan the horizontal line start from the middle of chart but after i right click and drag left in the chart, the scale start from 0.
chart.getXYPlot().getRangeAxis(axisno).setRange(-100, 100);
How to fix the RangeAxis?
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: How to fix the RangeAxis?
It seems that while you want to drag the x axis only, you accidentally drag the y axis as well. This resets the autoRange flag to true.
I recommend to try this patch. It should allow to disable and enable panning for each axis separately.
I recommend to try this patch. It should allow to disable and enable panning for each axis separately.