This patch adds the following features:
- Individual axes can be panned and zoomed by dragging the mouse along an axis or my using the mouse wheel over.
- Axes can be prevented from being panned and zoomed if the mouse is dragged/the mouse wheel used on the data area of an XYPlot.
Demo program
Second try. The patch now allows to zoom along a single ValueAxis by dragging the mouse inside the axis area. CategoryPlot now also checks the globalPannable and globalZoomable flags.
Final version.
Combined plots are now supported as well.
Fixes:
1. Patch can be applied directly to latest JFreeChart (3255)
2. See http://www.jfree.org/forum/viewtopic.php?f=3&t=116907&start=15#p177843
The problem that axis does not become zoomed when you perform a negative zoom on the axis has been fixed.
3. A NPE has been fixed on Combined..Plots when the zoom action started on the gap between plots.
It is highly recommended to commit https://sourceforge.net/p/jfreechart/patches/312/ also.