afreechart/src/main/java/org/afree/chart/ChartFactory.java
/**
     * Creates and returns a default instance of an XY bar chart.
     * <P>
     * The chart object returned by this method uses an {@link XYPlot} instance
     * as the plot, with a {@link DateAxis} for the domain axis, a
     * {@link NumberAxis} as the range axis, and a {@link XYBarRenderer} as the
     * renderer.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param xAxisLabel  a label for the X-axis (<code>null</code> permitted).
     * @param dateAxis  make the domain axis display dates?
     * @param yAxisLabel  a label for the Y-axis (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param orientation  the orientation (horizontal or vertical)
     *                     (<code>null</code> NOT permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @return An XY bar chart.
     */
Creates and returns a default instance of an XY bar chart.

The chart object returned by this method uses an  XYPlot instance
as the plot, with a  DateAxis for the domain axis, a
NumberAxis as the range axis, and a  XYBarRenderer as the
renderer.

@param title  the chart title (null permitted).
@param xAxisLabel  a label for the X-axis (null permitted).
@param dateAxis  make the domain axis display dates.
@param yAxisLabel  a label for the Y-axis (null permitted).
@param dataset  the dataset for the chart (null permitted).
@param orientation  the orientation (horizontal or vertical)
(null NOT permitted).
@param legend  a flag specifying whether or not a legend is required.
@param tooltips  configure chart to generate tool tips.

@return An XY bar chart.
Creates and returns a default instance of an XY bar chart . The chart object returned by this method uses an XYPlot instance as the plot with a DateAxis for the domain axis a NumberAxis as the range axis and a XYBarRenderer as the renderer . @param title the chart title ( null permitted ) . @param xAxisLabel a label for the X - axis ( null permitted ) . @param dateAxis make the domain axis display dates . @param yAxisLabel a label for the Y - axis ( null permitted ) . @param dataset the dataset for the chart ( null permitted ) . @param orientation the orientation ( horizontal or vertical ) ( null NOT permitted ) . @param legend a flag specifying whether or not a legend is required . @param tooltips configure chart to generate tool tips . @return An XY bar chart .
public static AFreeChart createXYBarChart(String title,
                                              String xAxisLabel,
                                              boolean dateAxis,
                                              String yAxisLabel,
                                              IntervalXYDataset dataset,
                                              PlotOrientation orientation,
                                              boolean legend,
                                              boolean tooltips,
                                              boolean urls) {
        if (orientation == null) {
            throw new IllegalArgumentException("Null 'orientation' argument.");
        }
        ValueAxis domainAxis = null;
        if (dateAxis) {
            domainAxis = new DateAxis(xAxisLabel);
        }
        else {
            NumberAxis axis = new NumberAxis(xAxisLabel);
            axis.setAutoRangeIncludesZero(false);
            domainAxis = axis;
        }
        ValueAxis valueAxis = new NumberAxis(yAxisLabel);
        XYBarRenderer renderer = new XYBarRenderer();
        if (tooltips) {
        }
        XYPlot plot = new XYPlot(dataset, domainAxis, valueAxis, renderer);
        plot.setOrientation(orientation);
        AFreeChart chart = new AFreeChart(title, AFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        return chart;
    }
public static AFreeChart createXYBarChart ( String title , String xAxisLabel , boolean dateAxis , String yAxisLabel , IntervalXYDataset dataset , PlotOrientation orientation , boolean legend , boolean tooltips , boolean urls ) { if ( orientation == null ) { throw new IllegalArgumentException ( "Null 'orientation' argument." ) ; } ValueAxis domainAxis = null ; if ( dateAxis ) { domainAxis = new DateAxis ( xAxisLabel ) ; } else { NumberAxis axis = new NumberAxis ( xAxisLabel ) ; axis . setAutoRangeIncludesZero ( false ) ; domainAxis = axis ; } ValueAxis valueAxis = new NumberAxis ( yAxisLabel ) ; XYBarRenderer renderer = new XYBarRenderer ( ) ; if ( tooltips ) { } XYPlot plot = new XYPlot ( dataset , domainAxis , valueAxis , renderer ) ; plot . setOrientation ( orientation ) ; AFreeChart chart = new AFreeChart ( title , AFreeChart . DEFAULT_TITLE_FONT , plot , legend ) ; return chart ; }
Creates and returns a default instance of an XY bar chart.
Creates and returns a default instance of an XY bar chart .
//            XYToolTipGenerator tt; //            if (dateAxis) { //                tt = StandardXYToolTipGenerator.getTimeSeriesInstance(); //            } //            else { //                tt = new StandardXYToolTipGenerator(); //            } //            renderer.setBaseToolTipGenerator(tt); //        if (urls) { //            renderer.setURLGenerator(new StandardXYURLGenerator()); //        } //        currentTheme.apply(chart);