Chapter 7. Adding Charts and Graphics to Reports

All of the reports we have seen so far contain only textual data. JasperReports has the capability to create reports with graphical data in them, including simple geometric shapes, images, and charts. Adding graphical representation of the data makes it easier to visualize. Adding images and other graphical elements allows us to create more appealing reports. In this chapter, we will learn how to take advantage of JasperReports' graphical features.

We are going to cover the following topics in this chapter:

  • Adding simple geometrical shapes to a report
  • Adding images to a report
  • Adding different types of 2D and 3D charts to a report

Adding geometrical shapes to a report

JasperReports supports adding lines, ...

Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.