afreechart/src/main/java/org/afree/chart/plot/CategoryPlot.java
/**
     * Zooms (in or out) on the plot's value axis.
     * <p>
     * If the value 0.0 is passed in as the zoom percent, the auto-range
     * calculation for the axis is restored (which sets the range to include the
     * minimum and maximum data values, thus displaying all the data).
     * 
     * @param percent
     *            the zoom amount.
     */
Zooms (in or out) on the plot's value axis.

If the value 0.0 is passed in as the zoom percent, the auto-range
calculation for the axis is restored (which sets the range to include the
minimum and maximum data values, thus displaying all the data).

@param percent
the zoom amount.
Zooms ( in or out ) on the plot ' s value axis . If the value 0 . 0 is passed in as the zoom percent the auto - range calculation for the axis is restored ( which sets the range to include the minimum and maximum data values thus displaying all the data ) . @param percent the zoom amount .
public void zoom(double percent) {
        if (percent > 0.0) {
            double range = getRangeAxis().getRange().getLength();
            double scaledRange = range * percent;
            getRangeAxis().setRange(this.anchorValue - scaledRange / 2.0,
                    this.anchorValue + scaledRange / 2.0);
        } else {
            getRangeAxis().setAutoRange(true);
        }
    }
public void zoom ( double percent ) { if ( percent > 0.0 ) { double range = getRangeAxis ( ) . getRange ( ) . getLength ( ) ; double scaledRange = range * percent ; getRangeAxis ( ) . setRange ( this . anchorValue - scaledRange / 2.0 , this . anchorValue + scaledRange / 2.0 ) ; } else { getRangeAxis ( ) . setAutoRange ( true ) ; } }
Zooms (in or out) on the plot's value axis.
Zooms ( in or out ) on the plot ' s value axis .