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.
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
Transformer. The text file will also tell you how to copy sample data for this recipe into the tables.