afreechart/src/main/java/org/afree/chart/ChartFactory.java
/**
     * Creates a line chart (based on an {@link XYDataset}) with default
     * settings.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param xAxisLabel  a label for the X-axis (<code>null</code> permitted).
     * @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 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 The chart.
     */
Creates a line chart (based on an  XYDataset) with default
settings.

@param title  the chart title (null permitted).
@param xAxisLabel  a label for the X-axis (null permitted).
@param yAxisLabel  a label for the Y-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 The chart.
Creates a line chart ( based on an XYDataset ) with default settings . @param title the chart title ( null permitted ) . @param xAxisLabel a label for the X - axis ( null permitted ) . @param yAxisLabel a label for the Y - 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 The chart .
public static AFreeChart createXYLineChart(String title,
                                               String xAxisLabel,
                                               String yAxisLabel,
                                               XYDataset dataset,
                                               PlotOrientation orientation,
                                               boolean legend,
                                               boolean tooltips,
                                               boolean urls) {
        if (orientation == null) {
            throw new IllegalArgumentException("Null 'orientation' argument.");
        }
        NumberAxis xAxis = new NumberAxis(xAxisLabel);
        xAxis.setAutoRangeIncludesZero(false);
        NumberAxis yAxis = new NumberAxis(yAxisLabel);
        XYItemRenderer renderer = new XYLineAndShapeRenderer(true, false);
        XYPlot plot = new XYPlot(dataset, xAxis, yAxis, renderer);
        plot.setOrientation(orientation);
        AFreeChart chart = new AFreeChart(title, AFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
    }
public static AFreeChart createXYLineChart ( String title , String xAxisLabel , String yAxisLabel , XYDataset dataset , PlotOrientation orientation , boolean legend , boolean tooltips , boolean urls ) { if ( orientation == null ) { throw new IllegalArgumentException ( "Null 'orientation' argument." ) ; } NumberAxis xAxis = new NumberAxis ( xAxisLabel ) ; xAxis . setAutoRangeIncludesZero ( false ) ; NumberAxis yAxis = new NumberAxis ( yAxisLabel ) ; XYItemRenderer renderer = new XYLineAndShapeRenderer ( true , false ) ; XYPlot plot = new XYPlot ( dataset , xAxis , yAxis , renderer ) ; plot . setOrientation ( orientation ) ; AFreeChart chart = new AFreeChart ( title , AFreeChart . DEFAULT_TITLE_FONT , plot , legend ) ; currentTheme . apply ( chart ) ; return chart ; }
Creates a line chart (based on an {@link XYDataset}) with default
 settings.
Creates a line chart ( based on an { @link XYDataset } ) with default settings .
// Generate Axis objects. // Generate renderer. // Generate plot object. // Generate AFreeChart object.