org.jfree.chart
Class ChartFactory

public class ChartFactory
A collection of utility methods for creating some standard charts with JFreeChart.
SinceNot specified.
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Constructor Summary
ChartFactory()
No description provided.
Method Summary
static JFreeChart createAreaChart( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates an area chart with default settings.
static JFreeChart createBarChart( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a bar chart.
static JFreeChart createBarChart3D( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a bar chart with a 3D effect.
static JFreeChart createBoxAndWhiskerChart( String title, String timeAxisLabel, String valueAxisLabel, BoxAndWhiskerXYDataset dataset, boolean legend )
Creates and returns a default instance of a box and whisker chart.
static JFreeChart createBubbleChart( String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a bubble chart with default settings.
static JFreeChart createCandlestickChart( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend )
Creates and returns a default instance of a candlesticks chart.
static JFreeChart createGanttChart( String title, String categoryAxisLabel, String dateAxisLabel, IntervalCategoryDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a Gantt chart using the supplied attributes plus default values where required.
static JFreeChart createHighLowChart( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend )
Creates and returns a default instance of a high-low-open-close chart.
static JFreeChart createHighLowChart( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, Timeline timeline, boolean legend )
Creates and returns a default instance of a high-low-open-close chart with a special timeline.
static JFreeChart createHistogram( String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a histogram chart.
static JFreeChart createLineChart( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart with default settings.
static JFreeChart createLineChart3D( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart with default settings.
static JFreeChart createMultiplePieChart( String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls )
Creates a chart that displays multiple pie plots.
static JFreeChart createMultiplePieChart3D( String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls )
Creates a chart that displays multiple pie plots.
static JFreeChart createPieChart( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a pie chart with default settings.
static JFreeChart createPieChart( String title, PieDataset dataset, PieDataset previousDataset, int percentDiffForMaxScale, boolean greenForIncrease, boolean legend, boolean tooltips, boolean urls, boolean subTitle, boolean showDifference )
Creates a pie chart with default settings that compares 2 datasets.
static JFreeChart createPieChart3D( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a 3D pie chart using the specified dataset.
static JFreeChart createPolarChart( String title, XYDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a polar plot for the specified dataset (x-values interpreted as angles in degrees).
static JFreeChart createRingChart( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a ring chart with default settings.
static JFreeChart createScatterPlot( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a scatter plot with default settings.
static JFreeChart createStackedAreaChart( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked area chart with default settings.
static JFreeChart createStackedBarChart( String title, String domainAxisLabel, String rangeAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked bar chart with default settings.
static JFreeChart createStackedBarChart3D( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked bar chart with a 3D effect and default settings.
static JFreeChart createStackedXYAreaChart( String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked XY area plot.
static JFreeChart createTimeSeriesChart( String title, String timeAxisLabel, String valueAxisLabel, XYDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates and returns a time series chart.
static JFreeChart createWaferMapChart( String title, WaferMapDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a wafer map chart.
static JFreeChart createWaterfallChart( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a waterfall chart.
static JFreeChart createWindPlot( String title, String xAxisLabel, String yAxisLabel, WindDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a wind plot with default settings.
static JFreeChart createXYAreaChart( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates an area chart using an XYDataset .
static JFreeChart createXYBarChart( String title, String xAxisLabel, boolean dateAxis, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates and returns a default instance of an XY bar chart.
static JFreeChart createXYLineChart( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart (based on an XYDataset ) with default settings.
static JFreeChart createXYStepAreaChart( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a filled stepped XY plot with default settings.
static JFreeChart createXYStepChart( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stepped XY plot with default settings.
ChartFactory
public ChartFactory ( )
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
createAreaChart
public static JFreeChart createAreaChart ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates an area chart with default settings. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and an AreaRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createBarChart
public static JFreeChart createBarChart ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a bar chart. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and a BarRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createBarChart3D
public static JFreeChart createBarChart3D ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
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.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createBoxAndWhiskerChart
public static JFreeChart createBoxAndWhiskerChart ( String title, String timeAxisLabel, String valueAxisLabel, BoxAndWhiskerXYDataset dataset, boolean legend )
Creates and returns a default instance of a box and whisker chart.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String timeAxisLabel a label for the time axis (null permitted).
String valueAxisLabel a label for the value axis (null permitted).
BoxAndWhiskerXYDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
Wiki javadoc Use textile entry format.
Add your comments here.
createBubbleChart
public static JFreeChart createBubbleChart ( String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a bubble chart with default settings. The chart is composed of an XYPlot , with a NumberAxis for the domain axis, a NumberAxis for the range axis, and an XYBubbleRenderer to draw the data items.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYZDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createCandlestickChart
public static JFreeChart createCandlestickChart ( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend )
Creates and returns a default instance of a candlesticks chart.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String timeAxisLabel a label for the time axis (null permitted).
String valueAxisLabel a label for the value axis (null permitted).
OHLCDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
Wiki javadoc Use textile entry format.
Add your comments here.
createGanttChart
public static JFreeChart createGanttChart ( String title, String categoryAxisLabel, String dateAxisLabel, IntervalCategoryDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a Gantt chart using the supplied attributes plus default values where required. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a DateAxis as the range axis, and a GanttRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String dateAxisLabel the label for the date axis (null permitted).
IntervalCategoryDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createHighLowChart
public static JFreeChart createHighLowChart ( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, boolean legend )
Creates and returns a default instance of a high-low-open-close chart.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String timeAxisLabel a label for the time axis (null permitted).
String valueAxisLabel a label for the value axis (null permitted).
OHLCDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
Wiki javadoc Use textile entry format.
Add your comments here.
createHighLowChart
public static JFreeChart createHighLowChart ( String title, String timeAxisLabel, String valueAxisLabel, OHLCDataset dataset, Timeline timeline, boolean legend )
Creates and returns a default instance of a high-low-open-close chart with a special timeline. This timeline can be a SegmentedTimeline such as the Monday through Friday timeline that will remove Saturdays and Sundays from the axis.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String timeAxisLabel a label for the time axis (null permitted).
String valueAxisLabel a label for the value axis (null permitted).
OHLCDataset dataset the dataset for the chart (null permitted).
Timeline timeline the timeline.
boolean legend a flag specifying whether or not a legend is required.
Wiki javadoc Use textile entry format.
Add your comments here.
createHistogram
public static JFreeChart createHistogram ( String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a histogram chart. This chart is constructed with an XYPlot using an XYBarRenderer . The domain and range axes are NumberAxis instances.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel the x axis label (null permitted).
String yAxisLabel the y axis label (null permitted).
IntervalXYDataset dataset the dataset (null permitted).
PlotOrientation orientation the orientation (horizontal or vertical) (null NOT permitted).
boolean legend create a legend?
boolean tooltips display tooltips?
boolean urls generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createLineChart
public static JFreeChart createLineChart ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart with default settings. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and a LineAndShapeRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the chart orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createLineChart3D
public static JFreeChart createLineChart3D ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart with default settings. 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 LineRenderer3D as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the chart orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createMultiplePieChart
public static JFreeChart createMultiplePieChart ( String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls )
Creates a chart that displays multiple pie plots. The chart object returned by this method uses a MultiplePiePlot instance as the plot.
Parameters
TypeNameDescription
String title the chart title (null permitted).
CategoryDataset dataset the dataset (null permitted).
TableOrder order the order that the data is extracted (by row or by column) (null not permitted).
boolean legend include a legend?
boolean tooltips generate tooltips?
boolean urls generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createMultiplePieChart3D
public static JFreeChart createMultiplePieChart3D ( String title, CategoryDataset dataset, TableOrder order, boolean legend, boolean tooltips, boolean urls )
Creates a chart that displays multiple pie plots. The chart object returned by this method uses a MultiplePiePlot instance as the plot.
Parameters
TypeNameDescription
String title the chart title (null permitted).
CategoryDataset dataset the dataset (null permitted).
TableOrder order the order that the data is extracted (by row or by column) (null not permitted).
boolean legend include a legend?
boolean tooltips generate tooltips?
boolean urls generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createPieChart
public static JFreeChart createPieChart ( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a pie chart with default settings.

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

Parameters
TypeNameDescription
String title the chart title (null permitted).
PieDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createPieChart
public static JFreeChart createPieChart ( String title, PieDataset dataset, PieDataset previousDataset, int percentDiffForMaxScale, boolean greenForIncrease, boolean legend, boolean tooltips, boolean urls, boolean subTitle, boolean showDifference )
Creates a pie chart with default settings that compares 2 datasets. The colour of each section will be determined by the move from the value for the same key in previousDataset. ie if value1 > value2 then the section will be in green (unless greenForIncrease is false, in which case it would be red). Each section can have a shade of red or green as the difference can be tailored between 0% (black) and percentDiffForMaxScale% (bright red/green).

For instance if percentDiffForMaxScale is 10 (10%), a difference of 5% will have a half shade of red/green, a difference of 10% or more will have a maximum shade/brightness of red/green.

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

Written by Benoit Xhenseval.

Parameters
TypeNameDescription
String title the chart title (null permitted).
PieDataset dataset the dataset for the chart (null permitted).
PieDataset previousDataset the dataset for the last run, this will be used to compare each key in the dataset
int percentDiffForMaxScale scale goes from bright red/green to black, percentDiffForMaxScale indicate the change required to reach top scale.
boolean greenForIncrease an increase since previousDataset will be displayed in green (decrease red) if true.
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
boolean subTitle displays a subtitle with colour scheme if true
boolean showDifference create a new dataset that will show the % difference between the two datasets.
Wiki javadoc Use textile entry format.
Add your comments here.
createPieChart3D
public static JFreeChart createPieChart3D ( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a 3D pie chart using the specified dataset. The chart object returned by this method uses a PiePlot3D instance as the plot.
Parameters
TypeNameDescription
String title the chart title (null permitted).
PieDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createPolarChart
public static JFreeChart createPolarChart ( String title, XYDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a polar plot for the specified dataset (x-values interpreted as angles in degrees). The chart object returned by this method uses a PolarPlot instance as the plot, with a NumberAxis for the radial axis.
Parameters
TypeNameDescription
String title the chart title (null permitted).
XYDataset dataset the dataset (null permitted).
boolean legend legend required?
boolean tooltips tooltips required?
boolean urls URLs required?
Wiki javadoc Use textile entry format.
Add your comments here.
createRingChart
public static JFreeChart createRingChart ( String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a ring chart with default settings.

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

Parameters
TypeNameDescription
String title the chart title (null permitted).
PieDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createScatterPlot
public static JFreeChart createScatterPlot ( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a scatter plot with default settings. The chart object returned by this method uses an XYPlot instance as the plot, with a NumberAxis for the domain axis, a NumberAxis as the range axis, and an XYLineAndShapeRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createStackedAreaChart
public static JFreeChart createStackedAreaChart ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked area chart with default settings. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and a StackedAreaRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createStackedBarChart
public static JFreeChart createStackedBarChart ( String title, String domainAxisLabel, String rangeAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked bar chart with default settings. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and a StackedBarRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String domainAxisLabel the label for the category axis (null permitted).
String rangeAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the orientation of the chart (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createStackedBarChart3D
public static JFreeChart createStackedBarChart3D ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked bar chart with a 3D effect and default settings. 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 StackedBarRenderer3D as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the orientation (horizontal or vertical) (null not permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createStackedXYAreaChart
public static JFreeChart createStackedXYAreaChart ( String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stacked XY area plot. The chart object returned by this method uses an XYPlot instance as the plot, with a NumberAxis for the domain axis, a NumberAxis as the range axis, and a StackedXYAreaRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
TableXYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createTimeSeriesChart
public static JFreeChart createTimeSeriesChart ( String title, String timeAxisLabel, String valueAxisLabel, XYDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates and returns a time series chart. A time series chart is an XYPlot with a DateAxis for the x-axis and a NumberAxis for the y-axis. The default renderer is an XYLineAndShapeRenderer .

A convenient dataset to use with this chart is a TimeSeriesCollection .

Parameters
TypeNameDescription
String title the chart title (null permitted).
String timeAxisLabel a label for the time axis (null permitted).
String valueAxisLabel a label for the value axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createWaferMapChart
public static JFreeChart createWaferMapChart ( String title, WaferMapDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a wafer map chart.
Parameters
TypeNameDescription
String title the chart title (null permitted).
WaferMapDataset dataset the dataset (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted.
boolean legend display a legend?
boolean tooltips generate tooltips?
boolean urls generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createWaterfallChart
public static JFreeChart createWaterfallChart ( String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a waterfall chart. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and a WaterfallBarRenderer as the renderer.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String categoryAxisLabel the label for the category axis (null permitted).
String valueAxisLabel the label for the value axis (null permitted).
CategoryDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createWindPlot
public static JFreeChart createWindPlot ( String title, String xAxisLabel, String yAxisLabel, WindDataset dataset, boolean legend, boolean tooltips, boolean urls )
Creates a wind plot with default settings.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the x-axis (null permitted).
String yAxisLabel a label for the y-axis (null permitted).
WindDataset dataset the dataset for the chart (null permitted).
boolean legend a flag that controls whether or not a legend is created.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createXYAreaChart
public static JFreeChart createXYAreaChart ( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates an area chart using an XYDataset .

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

Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createXYBarChart
public static JFreeChart createXYBarChart ( String title, String xAxisLabel, boolean dateAxis, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
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.

Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
boolean dateAxis make the domain axis display dates?
String yAxisLabel a label for the Y-axis (null permitted).
IntervalXYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createXYLineChart
public static JFreeChart createXYLineChart ( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a line chart (based on an XYDataset ) with default settings.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createXYStepAreaChart
public static JFreeChart createXYStepAreaChart ( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a filled stepped XY plot with default settings.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.
createXYStepChart
public static JFreeChart createXYStepChart ( String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls )
Creates a stepped XY plot with default settings.
Parameters
TypeNameDescription
String title the chart title (null permitted).
String xAxisLabel a label for the X-axis (null permitted).
String yAxisLabel a label for the Y-axis (null permitted).
XYDataset dataset the dataset for the chart (null permitted).
PlotOrientation orientation the plot orientation (horizontal or vertical) (null NOT permitted).
boolean legend a flag specifying whether or not a legend is required.
boolean tooltips configure chart to generate tool tips?
boolean urls configure chart to generate URLs?
Wiki javadoc Use textile entry format.
Add your comments here.