afreechart/src/main/java/org/afree/chart/ChartFactory.java
/**
     * Creates a bar chart with a 3D effect. The chart object returned by this
     * method uses a {@link CategoryPlot} instance as the plot, with a
     * {@link CategoryAxis3D} for the domain axis, a {@link NumberAxis3D} as
     * the range axis, and a {@link BarRenderer3D} as the renderer.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param categoryAxisLabel  the label for the category axis
     *                           (<code>null</code> permitted).
     * @param valueAxisLabel  the label for the value axis (<code>null</code>
     *                        permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param orientation  the plot 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 A bar chart with a 3D effect.
     */
Creates a bar chart with a 3D effect. The chart object returned by this
method uses a  CategoryPlot instance as the plot, with a
CategoryAxis3D for the domain axis, a  NumberAxis3D as
the range axis, and a  BarRenderer3D as the renderer.

@param title  the chart title (null permitted).
@param categoryAxisLabel  the label for the category axis
(null permitted).
@param valueAxisLabel  the label for the value axis (null
permitted).
@param dataset  the dataset for the chart (null permitted).
@param orientation  the plot 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 A bar chart with a 3D effect.
Creates a bar chart with a 3D effect . The chart object returned by this method uses a CategoryPlot instance as the plot with a CategoryAxis3D for the domain axis a NumberAxis3D as the range axis and a BarRenderer3D as the renderer . @param title the chart title ( null permitted ) . @param categoryAxisLabel the label for the category axis ( null permitted ) . @param valueAxisLabel the label for the value axis ( null permitted ) . @param dataset the dataset for the chart ( null permitted ) . @param orientation the plot 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 A bar chart with a 3D effect .
public static AFreeChart createBarChart3D(String title,
                                              String categoryAxisLabel,
                                              String valueAxisLabel,
                                              CategoryDataset dataset,
                                              PlotOrientation orientation,
                                              boolean legend,
                                              boolean tooltips,
                                              boolean urls) {
        if (orientation == null) {
            throw new IllegalArgumentException("Null 'orientation' argument.");
        }
        CategoryAxis categoryAxis = new CategoryAxis3D(categoryAxisLabel);
        ValueAxis valueAxis = new NumberAxis3D(valueAxisLabel);
        BarRenderer3D renderer = new BarRenderer3D();
        /*
        if (tooltips) {
            renderer.setBaseToolTipGenerator(
                    new StandardCategoryToolTipGenerator());
        }
        if (urls) {
            renderer.setBaseItemURLGenerator(
                    new StandardCategoryURLGenerator());
        }
        */
        CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis,
                renderer);
        plot.setOrientation(orientation);
        if (orientation == PlotOrientation.HORIZONTAL) {
            plot.setRowRenderingOrder(SortOrder.DESCENDING);
            plot.setColumnRenderingOrder(SortOrder.DESCENDING);
        }
        plot.setForegroundAlpha(191);
        AFreeChart chart = new AFreeChart(title, AFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        return chart;
    }
public static AFreeChart createBarChart3D ( String title , String categoryAxisLabel , String valueAxisLabel , CategoryDataset dataset , PlotOrientation orientation , boolean legend , boolean tooltips , boolean urls ) { if ( orientation == null ) { throw new IllegalArgumentException ( "Null 'orientation' argument." ) ; } CategoryAxis categoryAxis = new CategoryAxis3D ( categoryAxisLabel ) ; ValueAxis valueAxis = new NumberAxis3D ( valueAxisLabel ) ; BarRenderer3D renderer = new BarRenderer3D ( ) ; /*
        if (tooltips) {
            renderer.setBaseToolTipGenerator(
                    new StandardCategoryToolTipGenerator());
        }
        if (urls) {
            renderer.setBaseItemURLGenerator(
                    new StandardCategoryURLGenerator());
        }
        */ CategoryPlot plot = new CategoryPlot ( dataset , categoryAxis , valueAxis , renderer ) ; plot . setOrientation ( orientation ) ; if ( orientation == PlotOrientation . HORIZONTAL ) { plot . setRowRenderingOrder ( SortOrder . DESCENDING ) ; plot . setColumnRenderingOrder ( SortOrder . DESCENDING ) ; } plot . setForegroundAlpha ( 191 ) ; AFreeChart chart = new AFreeChart ( title , AFreeChart . DEFAULT_TITLE_FONT , plot , legend ) ; return chart ; }
Creates a bar chart with a 3D effect.
Creates a bar chart with a 3D effect .
// change rendering order to ensure that bar overlapping is the // right way around //currentTheme.apply(chart);