Class ChartFactory
public abstract class ChartFactory extends Object
-
Constructor Summary
Constructors Constructor Description ChartFactory() -
Method Summary
Modifier and Type Method Description static JFreeChartcreateAreaChart(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates an area chart with default settings.static JFreeChartcreateAreaXYChart(String title, String xAxisLabel, String yAxisLabel, XYDataset data, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYAreaChart(...).static JFreeChartcreateBarChart(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a bar chart.static JFreeChartcreateBarChart3D(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 JFreeChartcreateBoxAndWhiskerChart(String title, String timeAxisLabel, String valueAxisLabel, BoxAndWhiskerXYDataset dataset, boolean legend)Creates and returns a default instance of a box and whisker chart.static JFreeChartcreateBubbleChart(String title, String xAxisLabel, String yAxisLabel, XYZDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a bubble chart with default settings.static JFreeChartcreateCandlestickChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset dataset, boolean legend)Creates and returns a default instance of a candlesticks chart.static JFreeChartcreateGanttChart(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 JFreeChartcreateHighLowChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset dataset, boolean legend)Creates and returns a default instance of a high-low-open-close chart.static JFreeChartcreateHighLowChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset dataset, Timeline timeline, boolean legend)Creates and returns a default instance of a high-low-open-close chart with a special timeline.static JFreeChartcreateHistogram(String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a histogram chart.static JFreeChartcreateLineChart(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a line chart with default settings.static JFreeChartcreateLineXYChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYLineChart(...).static JFreeChartcreateMultiplePieChart(String title, CategoryDataset dataset, org.jfree.util.TableOrder order, boolean legend, boolean tooltips, boolean urls)Creates a chart that displays multiple pie plots.static JFreeChartcreateMultiplePieChart3D(String title, CategoryDataset dataset, org.jfree.util.TableOrder order, boolean legend, boolean tooltips, boolean urls)Creates a chart that displays multiple pie plots.static JFreeChartcreatePie3DChart(String title, PieDataset data, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createPieChart3D(...).static JFreeChartcreatePieChart(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls)Creates a pie chart with default settings.static JFreeChartcreatePieChart(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 JFreeChartcreatePieChart3D(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls)Creates a 3D pie chart using the specified dataset.static JFreeChartcreatePolarChart(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 JFreeChartcreateScatterPlot(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a scatter plot with default settings.static JFreeChartcreateSignalChart(String title, String timeAxisLabel, String valueAxisLabel, SignalsDataset dataset, boolean legend)Creates and returns a default instance of a signal chart.static JFreeChartcreateStackedAreaChart(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 JFreeChartcreateStackedAreaXYChart(String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Method renamed - use createStackedXYAreaChart().static JFreeChartcreateStackedBarChart(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 JFreeChartcreateStackedBarChart3D(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 JFreeChartcreateStackedXYAreaChart(String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a stacked XY area plot.static JFreeChartcreateTimeSeriesChart(String title, String timeAxisLabel, String valueAxisLabel, XYDataset dataset, boolean legend, boolean tooltips, boolean urls)Creates and returns a time series chart.static JFreeChartcreateWaferMapChart(String title, WaferMapDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a wafer map chart.static JFreeChartcreateWaterfallChart(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a waterfall chart.static JFreeChartcreateWindPlot(String title, String xAxisLabel, String yAxisLabel, WindDataset dataset, boolean legend, boolean tooltips, boolean urls)Creates a wind plot with default settings.static JFreeChartcreateXYAreaChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates an area chart using anXYDataset.static JFreeChartcreateXYBarChart(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 JFreeChartcreateXYBarChart(String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYBarChart() method with additional parameter.static JFreeChartcreateXYLineChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a line chart (based on anXYDataset) with default settings.static JFreeChartcreateXYStepAreaChart(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 JFreeChartcreateXYStepChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a stepped XY plot with default settings.
-
Constructor Details
-
ChartFactory
public ChartFactory()
-
-
Method Details
-
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
PiePlotinstance as the plot.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A pie chart.
-
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 taylored between 0% (black) and percentDiffForMaxScale% (bright red/green).for instance is 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
PiePlotinstance as the plot.Written by Benoit Xhenseval.
- Parameters:
title- the chart title (nullpermitted).dataset- the dataset for the chart (nullpermitted).previousDataset- the dataset for the last run, this will be used to compare each Key in the datasetpercentDiffForMaxScale- scale goes from bright red/green to black, percentDiffForMaxScale indicate the change required to reach top scale.greenForIncrease- an increase since previousDataset will be displayed in green (decrease red) if truelegend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?subTitle- displays a subtitle with colour scheme if trueshowDifference- create a new dataset that will show the % difference between the two datasets.- Returns:
- A pie chart.
- Since:
- 0.9.18
-
createMultiplePieChart
public static JFreeChart createMultiplePieChart(String title, CategoryDataset dataset, org.jfree.util.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
MultiplePiePlotinstance as the plot.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset (nullpermitted).order- the order that the data is extracted (by row or by column) (nullnot permitted).legend- include a legend?tooltips- generate tooltips?urls- generate URLs?- Returns:
- A chart.
-
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
PiePlot3Dinstance as the plot.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A pie chart.
-
createMultiplePieChart3D
public static JFreeChart createMultiplePieChart3D(String title, CategoryDataset dataset, org.jfree.util.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
MultiplePiePlotinstance as the plot.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset (nullpermitted).order- the order that the data is extracted (by row or by column) (nullnot permitted).legend- include a legend?tooltips- generate tooltips?urls- generate URLs?- Returns:
- a chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and aBarRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A bar chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and aStackedBarRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).domainAxisLabel- the label for the category axis (nullpermitted).rangeAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the orientation of the chart (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A stacked bar chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxis3Dfor the domain axis, aNumberAxis3Das the range axis, and aBarRenderer3Das the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A bar chart with a 3D effect.
-
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
CategoryPlotinstance as the plot, with aCategoryAxis3Dfor the domain axis, aNumberAxis3Das the range axis, and aStackedBarRenderer3Das the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the orientation (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A stacked bar chart with a 3D effect.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and anAreaRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- An area chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and aStackedAreaRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A stacked area chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and aLineAndShapeRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the chart orientation (horizontal or vertical) (nullnot permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A line chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aDateAxisas the range axis, and aGanttRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).dateAxisLabel- the label for the date axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A Gantt chart.
-
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
CategoryPlotinstance as the plot, with aCategoryAxisfor the domain axis, aNumberAxisas the range axis, and aWaterfallBarRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).categoryAxisLabel- the label for the category axis (nullpermitted).valueAxisLabel- the label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A waterfall chart.
-
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
PolarPlotinstance as the plot, with aNumberAxisfor the radial axis.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset (nullpermitted).legend- legend required?tooltips- tooltips required?urls- URLs required?- Returns:
- A chart.
-
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
XYPlotinstance as the plot, with aNumberAxisfor the domain axis, aNumberAxisas the range axis, and aStandardXYItemRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A scatter plot.
-
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
XYPlotinstance as the plot, with aDateAxisfor the domain axis, aNumberAxisas the range axis, and aXYBarRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).dateAxis- make the domain axis display dates?yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- An XY bar chart.
-
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 anXYDataset.The chart object returned by this method uses an
XYPlotinstance as the plot, with aNumberAxisfor the domain axis, aNumberAxisas the range axis, and aXYAreaRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- An XY area chart.
-
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
XYPlotinstance as the plot, with aNumberAxisfor the domain axis, aNumberAxisas the range axis, and aStackedXYAreaRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A stacked XY area chart.
-
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 anXYDataset) with default settings.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- The chart.
-
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:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A chart.
-
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:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A chart.
-
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
XYPlotwith a date axis and a number axis, and each data item is connected with a line.Note that you can supply a
TimeSeriesCollectionto this method, as it implements theXYDatasetinterface.- Parameters:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A time series chart.
-
createCandlestickChart
public static JFreeChart createCandlestickChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset dataset, boolean legend)Creates and returns a default instance of a candlesticks chart.- Parameters:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.- Returns:
- a candlestick chart.
-
createHighLowChart
public static JFreeChart createHighLowChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset dataset, boolean legend)Creates and returns a default instance of a high-low-open-close chart.- Parameters:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.- Returns:
- a high-low-open-close chart.
-
createHighLowChart
public static JFreeChart createHighLowChart(String title, String timeAxisLabel, String valueAxisLabel, HighLowDataset 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 aSegmentedTimelinesuch as the Monday trough Friday timeline that will remove Saturdays and Sundays from the axis.- Parameters:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).timeline- the timeline.legend- a flag specifying whether or not a legend is required.- Returns:
- a high-low-open-close chart.
-
createSignalChart
public static JFreeChart createSignalChart(String title, String timeAxisLabel, String valueAxisLabel, SignalsDataset dataset, boolean legend)Creates and returns a default instance of a signal chart.- Parameters:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.- Returns:
- a signal chart.
-
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.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- a bubble chart.
-
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 anXYPlotusing anXYBarRenderer. The domain and range axes areNumberAxisinstances.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- the x axis label (nullpermitted).yAxisLabel- the y axis label (nullpermitted).dataset- the dataset (nullpermitted).orientation- the orientation (horizontal or vertical) (nullNOT permitted).legend- create a legend?tooltips- display tooltips?urls- generate URLs?- Returns:
- The chart.
-
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:
title- the chart title (nullpermitted).timeAxisLabel- a label for the time axis (nullpermitted).valueAxisLabel- a label for the value axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag specifying whether or not a legend is required.- Returns:
- a box and whisker chart.
-
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:
title- the chart title (nullpermitted).xAxisLabel- a label for the x-axis (nullpermitted).yAxisLabel- a label for the y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).legend- a flag that controls whether or not a legend is created.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- A wind plot.
-
createWaferMapChart
public static JFreeChart createWaferMapChart(String title, WaferMapDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Creates a wafer map chart.- Parameters:
title- the chart title (nullpermitted).dataset- the dataset (nullpermitted).orientation- the plot orientation (horizontal or vertical) (nullNOT permitted.legend- display a legend?tooltips- generate tooltips?urls- generate URLs?- Returns:
- a wafer map chart.
-
createPie3DChart
public static JFreeChart createPie3DChart(String title, PieDataset data, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createPieChart3D(...).Creates a pie chart with default settings.- Parameters:
title- the chart title.data- the dataset for the chart.legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- a pie chart.
-
createLineXYChart
public static JFreeChart createLineXYChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYLineChart(...).Creates a line chart (based on anXYDataset) with default settings.- Parameters:
title- the chart title.xAxisLabel- a label for the X-axis.yAxisLabel- a label for the Y-axis.dataset- the dataset for the chart.orientation- the plot orientation (horizontal or vertical).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- The chart.
-
createAreaXYChart
public static JFreeChart createAreaXYChart(String title, String xAxisLabel, String yAxisLabel, XYDataset data, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYAreaChart(...).Creates an area chart using anXYDataset.- Parameters:
title- the chart title.xAxisLabel- a label for the X-axis.yAxisLabel- a label for the Y-axis.data- the dataset for the chart.orientation- the plot orientation (horizontal or vertical).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- an XY area chart.
-
createStackedAreaXYChart
public static JFreeChart createStackedAreaXYChart(String title, String xAxisLabel, String yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Method renamed - use createStackedXYAreaChart().Creates a stacked XY area plot.- Parameters:
title- the chart title.xAxisLabel- a label for the X-axis.yAxisLabel- a label for the Y-axis.dataset- the dataset for the chart.orientation- the plot orientation (horizontal or vertical).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- The chart.
-
createXYBarChart
public static JFreeChart createXYBarChart(String title, String xAxisLabel, String yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls)Deprecated.Use createXYBarChart() method with additional parameter.Creates and returns a default instance of an XY bar chart.The chart object returned by this method uses an
XYPlotinstance as the plot, with aDateAxisfor the domain axis, aNumberAxisas the range axis, and aXYBarRendereras the renderer.- Parameters:
title- the chart title (nullpermitted).xAxisLabel- a label for the X-axis (nullpermitted).yAxisLabel- a label for the Y-axis (nullpermitted).dataset- the dataset for the chart (nullpermitted).orientation- the orientation (horizontal or vertical) (nullNOT permitted).legend- a flag specifying whether or not a legend is required.tooltips- configure chart to generate tool tips?urls- configure chart to generate URLs?- Returns:
- an XY bar chart.
-