See: Description
Interface | Description |
---|---|
ChartContext | |
ChartTheme |
Chart themes give more control over chart output, including
the creation of the JFreeChart object itself.
|
ChartThemeBundle | |
JRAreaPlot |
Area charts and Stacked Area charts rely on this plot to render their axes and items.
|
JRBar3DPlot |
Type of plot
used to render Bar 3D and the Stacked Bar 3D charts.
|
JRBarPlot |
Type of plot used to render Bar, Stacked Bar, and XY Bar charts.
|
JRBubblePlot |
Only Bubble charts use this type of plot.
|
JRCandlestickPlot |
The Candlestick plot is also an axis-oriented plot and allows you to customize axis labels
using expressions.
|
JRCategoryAxisFormat | |
JRCategoryDataset |
This dataset accommodates one or more data series consisting of values associated with
categories.
|
JRCategoryPlot |
Type of plot used for rendering category charts.
|
JRCategorySeries |
Represents the series for any Category dataset.
|
JRChartAxis |
Describes an axis that can be added to a multiple axis chart.
|
JRCommonLinePlot |
Type of the plot used to render Line, XY Line and Scatter charts.
|
JRDataRange |
Represents a numeric range.
|
JRGanttDataset |
This dataset accommodates one or more data series consisting of values associated with
tasks and subtasks.
|
JRGanttSeries |
Represents the series for the Gantt dataset.
|
JRHighLowDataset |
Although the name of this dataset is "High-Low", it can actually hold a series of
(x, high, low, open, close, volume) items.
|
JRHighLowPlot |
Used only in combination with High-Low charts, this type of plot lets users customize
the labels for both axes, like all the other axis-oriented plots.
|
JRItemLabel |
Contains the formatting option for the textual
representation of item labels in a category plot
|
JRLinePlot |
Type of plot used to render Line charts.
|
JRMeterPlot |
This type of plot can be used only for Meter charts and
represents the display options of a Meter Chart.
|
JRMultiAxisPlot |
Represents the display options and nested charts of a multiple axis chart.
|
JRPie3DPlot |
Type of plot used for rendering Pie 3D charts.
|
JRPieDataset |
This dataset is useful for rendering Pie or Pie 3D charts.
|
JRPiePlot |
Type of plot used for rendering Pie charts.
|
JRPieSeries |
Represents the series for the Pie dataset.
|
JRScatterPlot |
Scatter plots are used only with Scatter charts.
|
JRThermometerPlot |
Represents the display options of a Thermometer chart.
|
JRTimeAxisFormat | |
JRTimePeriodDataset |
The Time Period dataset is very much like the Time Series dataset in that it wraps series
consisting of (time period, numeric value) pairs.
|
JRTimePeriodSeries |
Represents the series for the Time Period dataset.
|
JRTimeSeries |
Represents the series for the Time Series dataset.
|
JRTimeSeriesDataset |
This dataset wraps one or multiple time series.
|
JRTimeSeriesPlot |
This type of plot is similar to the Line plot and Scatter plot in that it lets users configure
the labels for both axes, the rendering of lines to connect the item points, and the rendering
of the small shapes that mark each item point on the target plot area.
|
JRValueAxisFormat | |
JRValueDataset |
This class represents a dataset that consists of a single
value.
|
JRValueDisplay |
Represents the formatting option for the textual
representation of a value displayed in a Meter or
Thermometer chart.
|
JRXAxisFormat | |
JRXyDataset |
This dataset is a wrapper for data series made of (x, y) value pairs and is used for
rendering XY Bar, XY Line, XY Area, and Scatter Plot charts.
|
JRXySeries |
Represents the series for the XY dataset.
|
JRXyzDataset |
The XYZ dataset wraps series consisting of (x, y, z) items.
|
JRXyzSeries | |
JRYAxisFormat |
evaluationTime
and
evaluationGroup
attributes, which work in the same manner as for text fields and
images.
<chart>
:
isShowLegend
: flag attribute that specifies if the legend is visible on the chartcustomizerClass
: attribute that specifies the name of a chart customizer classrenderType
: attribute that specifies the chart rendering typetheme
: attribute that specifies the name of a custom chart themechartTitle
: element to customize the chart titlechartSubtitle
: element to customize the chart subtitlechartLegend
: element to customize the chart legendRenderable
interface.
The renderType
attribute specifies the renderer implementation that will be used to render the
chart during export or report display. By default, JasperReports recognizes the following values for this attribute:
draw
: the chart is drawn directly on the target graphic context using the JFreeChart APIimage
: an image is first produced from the chart and this image in turn gets rendered onto the target graphic contextsvg
: the chart is transformed into the SVG format and from that format is then rendered onto the target graphic contextJRChartCustomizer
interface that is associated
with the chart element using the customizerClass attribute. The easiest way to
implement this interface is by extending the
JRAbstractChartCustomizer
class and thus
having access to parameters, fields, and variables, for more flexible chart customization
based on report data.
jasperreports.properties
file as follows:
net.sf.jasperreports.chart.theme=theme_name
<property name="net.sf.jasperreports.chart.theme" value="theme_name"/>
theme
attribute.
JRChartDataset
interface to define chart datasets.
There are implementations of this interface for each of the aforementioned dataset types.
All chart datasets initialize and increment in the same way, and differ only in the type of
data or data series they map.
Common dataset properties are grouped under the <dataset>
tag in JRXML format.
JRChartPlot
interface. They are grouped
under the <plot>
tag in JRXML and can be part of any chart/plot definition in the report
template:
backcolor
attribute can be used to specify the color used for drawing the plot's area background.backgroundAlpha
and foregroundAlpha
attributes. These attributes accept numeric values ranging from 0 to 1. The default for both attributes is 1, which means
drawings on the plot area are opaque.<seriesColor>
tag available at the chart-plot level. If only one <seriesColor>
tag is specified, it becomes the color
of the first series. If more than one <seriesColor>
tag is specified, the chart will cycle through the
supplied colors.
<seriesColor>
settings.
<seriesColor>
can be set for each nested
chart to override the default colors.
seriesOrder
attribute and appear in that order when coloring the series.Copyright © 2017. All rights reserved.