java.lang.Object | |
↳ | org.jfree.chart.ChartFactory |
A collection of utility methods for creating some standard charts with JFreeChart.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an area chart with default settings.
| |||||||||||
Creates a bar chart.
| |||||||||||
Creates a bar chart with a 3D effect.
| |||||||||||
Creates and returns a default instance of a box and whisker chart.
| |||||||||||
Creates and returns a default instance of a box and whisker chart
based on data from a
BoxAndWhiskerCategoryDataset . | |||||||||||
Creates a bubble chart with default settings.
| |||||||||||
Creates and returns a default instance of a candlesticks chart.
| |||||||||||
Creates a Gantt chart using the supplied attributes plus default values
where required.
| |||||||||||
Creates and returns a default instance of a high-low-open-close chart
with a special timeline.
| |||||||||||
Creates and returns a default instance of a high-low-open-close chart.
| |||||||||||
Creates a histogram chart.
| |||||||||||
Creates a line chart with default settings.
| |||||||||||
Creates a line chart with default settings.
| |||||||||||
Creates a chart that displays multiple pie plots.
| |||||||||||
Creates a chart that displays multiple pie plots.
| |||||||||||
Creates a pie chart with default settings that compares 2 datasets.
| |||||||||||
Creates a pie chart with default settings.
| |||||||||||
Creates a pie chart with default settings.
| |||||||||||
Creates a pie chart with default settings that compares 2 datasets.
| |||||||||||
Creates a 3D pie chart using the specified dataset.
| |||||||||||
Creates a 3D pie chart using the specified dataset.
| |||||||||||
Creates a polar plot for the specified dataset (x-values interpreted as
angles in degrees).
| |||||||||||
Creates a ring chart with default settings.
| |||||||||||
Creates a ring chart with default settings.
| |||||||||||
Creates a scatter plot with default settings.
| |||||||||||
Creates a stacked area chart with default settings.
| |||||||||||
Creates a stacked bar chart with default settings.
| |||||||||||
Creates a stacked bar chart with a 3D effect and default settings.
| |||||||||||
Creates a stacked XY area plot.
| |||||||||||
Creates and returns a time series chart.
| |||||||||||
Creates a wafer map chart.
| |||||||||||
Creates a waterfall chart.
| |||||||||||
Creates a wind plot with default settings.
| |||||||||||
Creates an area chart using an
XYDataset . | |||||||||||
Creates and returns a default instance of an XY bar chart.
| |||||||||||
Creates a line chart (based on an
XYDataset ) with default
settings. | |||||||||||
Creates a filled stepped XY plot with default settings.
| |||||||||||
Creates a stepped XY plot with default settings.
| |||||||||||
Returns the current chart theme used by the factory.
| |||||||||||
Sets the current chart theme.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (null not
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? |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis
(null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null not 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? |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null not 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? |
Creates and returns a default instance of a box and whisker chart.
title | the chart title (null permitted). |
---|---|
timeAxisLabel | a label for the time axis (null
permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
Creates and returns a default instance of a box and whisker chart
based on data from a BoxAndWhiskerCategoryDataset
.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | a label for the category axis
(null permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
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.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the orientation (horizontal or vertical)
(null NOT 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? |
Creates and returns a default instance of a candlesticks chart.
title | the chart title (null permitted). |
---|---|
timeAxisLabel | a label for the time axis (null
permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
dateAxisLabel | the label for the date axis
(null permitted). |
dataset | the dataset for the chart (null 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? |
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.
title | the chart title (null permitted). |
---|---|
timeAxisLabel | a label for the time axis (null
permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
timeline | the timeline. |
legend | a flag specifying whether or not a legend is required. |
Creates and returns a default instance of a high-low-open-close chart.
title | the chart title (null permitted). |
---|---|
timeAxisLabel | a label for the time axis (null
permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
Creates a histogram chart. This chart is constructed with an
XYPlot
using an XYBarRenderer
. The domain and range
axes are NumberAxis
instances.
title | the chart title (null permitted). |
---|---|
xAxisLabel | the x axis label (null permitted). |
yAxisLabel | the y axis label (null permitted). |
dataset | the dataset (null permitted). |
orientation | the orientation (horizontal or vertical)
(null NOT permitted). |
legend | create a legend? |
tooltips | display tooltips? |
urls | generate 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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the chart orientation (horizontal or vertical)
(null not 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? |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the chart orientation (horizontal or vertical)
(null not 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? |
Creates a chart that displays multiple pie plots. The chart object
returned by this method uses a MultiplePiePlot
instance as the
plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset (null permitted). |
order | the order that the data is extracted (by row or by column)
(null not permitted). |
legend | include a legend? |
tooltips | generate tooltips? |
urls | generate URLs? |
Creates a chart that displays multiple pie plots. The chart object
returned by this method uses a MultiplePiePlot
instance as the
plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset (null permitted). |
order | the order that the data is extracted (by row or by column)
(null not permitted). |
legend | include a legend? |
tooltips | generate tooltips? |
urls | generate URLs? |
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.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null permitted). |
previousDataset | the dataset for the last run, this will be used to compare each key in the dataset |
percentDiffForMaxScale | 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 true. |
legend | 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 true |
showDifference | create a new dataset that will show the % difference between the two datasets. |
Creates a pie chart with default settings.
The chart object returned by this method uses a PiePlot
instance
as the plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
tooltips | configure chart to generate tool tips? |
locale | the locale (null not permitted). |
Creates a pie chart with default settings.
The chart object returned by this method uses a PiePlot
instance
as the plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null 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? |
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.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null permitted). |
previousDataset | the dataset for the last run, this will be used to compare each key in the dataset |
percentDiffForMaxScale | 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 true. |
legend | a flag specifying whether or not a legend is required. |
tooltips | configure chart to generate tool tips? |
locale | the locale (null not permitted). |
subTitle | displays a subtitle with colour scheme if true |
showDifference | create a new dataset that will show the % difference between the two datasets. |
Creates a 3D pie chart using the specified dataset. The chart object
returned by this method uses a PiePlot3D
instance as the
plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null 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? |
Creates a 3D pie chart using the specified dataset. The chart object
returned by this method uses a PiePlot3D
instance as the
plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
tooltips | configure chart to generate tool tips? |
locale | the locale (null not permitted). |
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.
title | the chart title (null permitted). |
---|---|
dataset | the dataset (null permitted). |
legend | legend required? |
tooltips | tooltips required? |
urls | URLs required? |
Creates a ring chart with default settings.
The chart object returned by this method uses a RingPlot
instance as the plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null permitted). |
legend | a flag specifying whether or not a legend is required. |
tooltips | configure chart to generate tool tips? |
locale | the locale (null not permitted). |
Creates a ring chart with default settings.
The chart object returned by this method uses a RingPlot
instance as the plot.
title | the chart title (null permitted). |
---|---|
dataset | the dataset for the chart (null 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? |
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.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null not 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? |
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.
title | the chart title (null permitted). |
---|---|
domainAxisLabel | the label for the category axis
(null permitted). |
rangeAxisLabel | the label for the value axis
(null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the orientation of the chart (horizontal or
vertical) (null not 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? |
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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the orientation (horizontal or vertical)
(null not 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? |
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 StackedXYAreaRenderer2
as the renderer.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
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
.
title | the chart title (null permitted). |
---|---|
timeAxisLabel | a label for the time axis (null
permitted). |
valueAxisLabel | a label for the value axis (null
permitted). |
dataset | the dataset for the chart (null 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? |
Creates a wafer map chart.
title | the chart title (null permitted). |
---|---|
dataset | the dataset (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT permitted. |
legend | display a legend? |
tooltips | generate tooltips? |
urls | generate 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.
title | the chart title (null permitted). |
---|---|
categoryAxisLabel | the label for the category axis
(null permitted). |
valueAxisLabel | the label for the value axis (null
permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
Creates a wind plot with default settings.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the x-axis (null permitted). |
yAxisLabel | a label for the y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
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? |
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.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
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.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
dateAxis | make the domain axis display dates? |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the orientation (horizontal or vertical)
(null NOT 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? |
Creates a line chart (based on an XYDataset
) with default
settings.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
Creates a filled stepped XY plot with default settings.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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? |
Creates a stepped XY plot with default settings.
title | the chart title (null permitted). |
---|---|
xAxisLabel | a label for the X-axis (null permitted). |
yAxisLabel | a label for the Y-axis (null permitted). |
dataset | the dataset for the chart (null permitted). |
orientation | the plot orientation (horizontal or vertical)
(null NOT 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 current chart theme used by the factory.
Sets the current chart theme. This will be applied to all new charts created via methods in this class.
theme | the theme (null not permitted). |
---|