Displaying data trends as a graph in your report

You will often need to display your report data in the form of a graph or a chart. JasperReports allows you to use graphs and charts in your report.

In this recipe, you will learn how to present a summary of your data as a graph.

Getting ready

Refer to the installPostgreSQL.txt file included in the source code download for this chapter to install and run PostgreSQL, which should be up and running before you proceed.

The source code for this chapter also includes a file named copyFeederDataIntoPGS.txt, which helps you to create a database named jasperdb8 and two tables named Feeder and Transformer. The text file will also tell you how to copy sample data for this recipe into the tables.

How to do it... ...

Get JasperReports 3.6 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.