afreechart/src/main/java/org/afree/chart/renderer/xy/XYBarRenderer.java
/**
     * Initialises the renderer and returns a state object that should be
     * passed to all subsequent calls to the drawItem() method.  Here we
     * calculate the Java2D y-coordinate for zero, since all the bars have
     * their bases fixed at zero.
     *
     * @param canvas  the graphics device.
     * @param dataArea  the area inside the axes.
     * @param plot  the plot.
     * @param dataset  the data.
     * @param info  an optional info collection object to return data back to
     *              the caller.
     *
     * @return A state object.
     */
Initialises the renderer and returns a state object that should be
passed to all subsequent calls to the drawItem() method.  Here we
calculate the Java2D y-coordinate for zero, since all the bars have
their bases fixed at zero.

@param canvas  the graphics device.
@param dataArea  the area inside the axes.
@param plot  the plot.
@param dataset  the data.
@param info  an optional info collection object to return data back to
the caller.

@return A state object.
Initialises the renderer and returns a state object that should be passed to all subsequent calls to the drawItem () method . Here we calculate the Java2D y - coordinate for zero since all the bars have their bases fixed at zero . @param canvas the graphics device . @param dataArea the area inside the axes . @param plot the plot . @param dataset the data . @param info an optional info collection object to return data back to the caller . @return A state object .
public XYItemRendererState initialise(Canvas canvas, RectShape dataArea,
            XYPlot plot, XYDataset dataset, PlotRenderingInfo info) {
        XYBarRendererState state = new XYBarRendererState(info);
        ValueAxis rangeAxis = plot.getRangeAxisForDataset(plot.indexOf(
                dataset));
        state.setG2Base(rangeAxis.valueToJava2D(this.base, dataArea,
                plot.getRangeAxisEdge()));
        return state;
    }
public XYItemRendererState initialise ( Canvas canvas , RectShape dataArea , XYPlot plot , XYDataset dataset , PlotRenderingInfo info ) { XYBarRendererState state = new XYBarRendererState ( info ) ; ValueAxis rangeAxis = plot . getRangeAxisForDataset ( plot . indexOf ( dataset ) ) ; state . setG2Base ( rangeAxis . valueToJava2D ( this . base , dataArea , plot . getRangeAxisEdge ( ) ) ) ; return state ; }
Initialises the renderer and returns a state object that should be
 passed to all subsequent calls to the drawItem() method.
Initialises the renderer and returns a state object that should be passed to all subsequent calls to the drawItem () method .