afreechart/src/main/java/org/afree/chart/ChartFactory.java
/**
     * Creates a pie chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link PiePlot} instance
     * as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> 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 pie chart.
     */
Creates a pie chart with default settings.

The chart object returned by this method uses a  PiePlot instance
as the plot.

@param title  the chart title (null permitted).
@param dataset  the dataset for the chart (null permitted).
@param legend  a flag specifying whether or not a legend is required.
@param tooltips  configure chart to generate tool tips.

@return A pie chart.
Creates a pie chart with default settings . The chart object returned by this method uses a PiePlot instance as the plot . @param title the chart title ( null permitted ) . @param dataset the dataset for the chart ( null permitted ) . @param legend a flag specifying whether or not a legend is required . @param tooltips configure chart to generate tool tips . @return A pie chart .
public static AFreeChart createPieChart(String title,
                                            PieDataset dataset,
                                            boolean legend,
                                            boolean tooltips,
                                            boolean urls) {
        PiePlot plot = new PiePlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        AFreeChart chart = new AFreeChart(title, AFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        return chart;
    }
public static AFreeChart createPieChart ( String title , PieDataset dataset , boolean legend , boolean tooltips , boolean urls ) { PiePlot plot = new PiePlot ( dataset ) ; plot . setLabelGenerator ( new StandardPieSectionLabelGenerator ( ) ) ; plot . setInsets ( new RectangleInsets ( 0.0 , 5.0 , 5.0 , 5.0 ) ) ; AFreeChart chart = new AFreeChart ( title , AFreeChart . DEFAULT_TITLE_FONT , plot , legend ) ; return chart ; }
Creates a pie chart with default settings.
Creates a pie chart with default settings .