13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ChartsCHAPTER 12 CHARTSUR provides the ability to render charts inside a report to different ways. You can use JFreeChart, a powerfulopen source chart-generation library, or as of version 5.0 you can use HTML5 charts.In a chart is possible to print the data coming from the main dataset or using a subdataset (we will deal with subdatasets inChapter 15). This allows you to include many different charts in one document without using subreports.UR supports a wide variety of chart types: Area, Bar, Bar 3D, Bubble, Line, Pie, Pie 3D, Scatter Plot, Stacked Bar,Stacked Bar 3D, Time Series, XY Area, Stacked Area, XY Bar, XY Line, Meter, Thermometer, Candlestick and High LowOpen Close charts. A MultiAxis chart can be used to aggregate multiple charts into a single one.This chapter has the following sections:• Creating a Simple Chart• Using Datasets• Value Hyperlinks• Properties of Charts• Using Chart Themes• HTML5 Charts12.1 Creating a Simple ChartIn this section, you will learn how to use the Chart tool to build a report containing a Pie 3D chart, then you will explore thedetails of chart management.We will use the JasperReports sample database for this example:1. Create a new empty document.2. Open the Report query dialog box (Figure 12-1) by clicking the button representing a cylinder in the designer tool bar.223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!