You can create interactive reports with HTML5 charts. And they're more attractive than the basic charts available in Jaspersoft Studio. This section shows how to build a report containing a simple HTML5 chart and how to change chart types and edit charts.
In Jaspersoft Studio HTML5 Charts work like Ad Hoc charts. Levels, for example, are the equivalent of what you would use the Ad Hoc Slider to see. Other explanations include:
• | Values: Static properties. |
• | Expressions: Dynamic properties. |
• | Categories: Rows. In a pie chart, the categories are the slices. |
• | Measures: The same as in Ad Hoc. In a pie chart, these are the size of the slice. |
• | Series Contributors: In the Design view, these are defined at the measure level. In JRXML these are defined as Series. |
Before you add a chart to your report, consider the best way to display your data. The following table describes the available chart types.
Icon
Description
Column charts - Compare values displayed as columns
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 representing 100% of the amounts for a category. Used when you have three or more data series and want to compare distributions within categories and at the same time display the differences between categories.
Bar charts - Compare values displayed as bars
Bar. Graphically summarize and display categories of data to let users easily compare amounts or values among categories.
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 representing 100% of the amounts for a category. Used when you have three or more data series and want to compare distributions within categories and at the same time display the differences between categories.
Line charts - Compare values displayed as points connected by lines
Line. Displays data points connected with straight lines, typically to show trends.
Spline. Displays data points connected with a fitted curve. Allow you to take a limited set of known data points and approximate intervening values.
Stacked Line. Displays series as a set of points connected by a line. Values are represented on the y-axis and categories are displayed on the x-axis. Lines do not overlap because they are cumulative at each point.
Stacked Spline. Displays series as a set of points connected with a fitted curve. Values are represented on the y-axis and categories are displayed on the x-axis. Lines do not overlap because they are cumulative at each point
Percent Line. A variation of a line chart in which each series adjoins but does not overlap the preceding series.
Percent Spline. A variation of a spline chart in which each series adjoins but does not overlap the preceding series.
Area charts - Compare values displayed as shaded areas. 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.
Stacked Area Spline. Displays a series as a set of points connected by a smooth line with the area below the line filled in. Values are represented on the y-axis and categories are displayed on the x-axis. Areas do not overlap because they are cumulative at each point.
Percent Area Spline. A variation of area spline charts that present values as trends for percentages, totaling 100% for each category.
Pie charts - Compare values displayed as slices of a circular graph
Pie. Multiple items of a single group are displayed as sectors of a circle.
Recommended Comments
There are no comments to display.