Selecting a Chart Type

There are a number of chart types to choose from to best represent your information, including:

Column, which compares values displayed as columns.
Bar, which compares values displayed as bars.
Line, which compares values displayed as points connected by lines.
Area, which compares values displayed as shaded areas.
Dual- and Multi-Axis, which display values using two or more measures.
Time Series, which compares time intervals displayed as points connected by lines. The Time Series chart type is only available for non-OLAP charts.
Scatter, which compares values as individual points arrayed across both axes of a chart.
Pie, which compares values displayed as slices of a circular graph.

By default, the Ad Hoc Editor creates a column chart. You can select a different type of chart at any time.

If you recently upgraded to JasperReports Server 5.5 or higher may find that existing scatter charts did not update, and are incompatible with the newer software. You can use the Ad Hoc views for those scatter charts to generate new reports, but cannot edit the views for scatter charts created in earlier versions of JasperReports Server.

To select a new chart type:

1. In the Ad Hoc View panel, click the icon to show the Canvas Options menu.
2. Select Chart Types... from the menu. The Select Chart Type window is displayed.

Select Chart Type Window

3. Click the type of chart you want to apply to your report. The selected chart type is outlined in blue.
4. Leave the Select Chart Type window open to rapidly switch between chart types, or click the icon at the top right to close it.

The following table describes the available chart types, and any rules affecting their usage (where required):

HTML5 Chart Types

Icon

Description

Rules

Column and Bar charts

 

 

Column. Multiple measures of a group are depicted as individual columns.

 

Stacked Column. Multiple measures of a group are depicted as portions of a single column whose size reflects the aggregate value of the group.

 

Percent Column. Multiple measures of a group are depicted as portions of a single column of fixed size.

 

Bar. Multiple measures of a group are depicted as individual bars.

 

Stacked Bar. Multiple measures of a group are depicted as portions of a single bar whose size reflects the aggregate value of the group.

 

Percent Bar. Multiple measures of a group are depicted as portions of a single bar of fixed size.

 

Line and Area charts

 

 

Line. Displays data points connected with straight lines.

 

Spline. Displays data points connected with a fitted curve.

 

Dual- and Multi-Axis charts

You can compare two or more measures, using one charting time or multiple charting types, with the charts listed here.

 

Column Line. Displays leftmost measures as bars, last measure as a line.

Requires two or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

 

Stacked Column Line. Displays leftmost measures as stacked bars, last measure as a line.

Requires three or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Column Spline. Displays leftmost measures as bars, last measure as a spline.

Requires two or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Stacked Column Spline. Displays leftmost measures as stacked bars, last measure as a line.

Requires three or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Multi-Axis Line. Displays each measure as a separate axis line.

Requires two or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Multi-Axis Spline. Displays each measure as a separate axis spline.

Requires two or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Multi-Axis Column. Displays each measure as a separate axis column.

Requires two or more measures.
Measures must be placed in the Columns location.
Fields and dimensions can only be placed in the Rows location.

Time Series charts

 

 

Line. Displays date and time data points connected with straight lines.

Requires a single date/time field in the Rows location.
Field must be set to the "day" group function.

Spline. Displays date and time data points connected with a fitted curve.

Requires a single date/time field in the Rows location.
Field must be set to the "day" group function.

Area. Displays date and time data points connected with a straight line and a color below the line; groups are displayed as transparent overlays.

Requires a single date/time field in the Rows location.
Field must be set to the "day" group function.

Area Spline. Displays date and time data points connected with a fitted curve and a color below the line; groups are displayed as transparent overlays.

Requires a single date/time field in the Rows location.
Field must be set to the "day" group function.

Area charts

As compared to line charts, area charts emphasize quantities rather than trends.

 

Area. Displays data points connected with a straight line and a color below the line; groups are displayed as transparent overlays.

 

Stacked Area. Displays data points connected with a straight line and a solid color below the line; groups are displayed as solid areas arranged vertically, one on top of another.

 

Percent Area. Displays data points connected with a straight line and a solid color below the line; groups are displayed as portions of an area of fixed sized, and arranged vertically one on top of the another.

 

Area Spline. Displays data points connected with a fitted curve and a color below the line; groups are displayed as transparent overlays.

 

Scatter charts

 

 

Scatter. Displays first measure as the x-axis, the second measure as the y-axis. Other fields and dimensions in the column group become data points.

Requires exactly two measures.
Measures must be placed in the Columns location.

Pie charts

 

 

Pie. Multiple measures of a group are displayed as sectors of a circle.

 

Feedback
randomness