iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library

13.07.2015 Views

iReport Ultimate GuideFigure 12-14 Chart theme exporterYou can set a name for your new theme in the window; this is the name that will be used by UR to identify yourtheme. Select the JAR to create. Optionally, you can automatically add the JAR to the iReport classpath, but remember to addthat JAR to your application, too, when you deploy the reports.12.5.3 Using a Chart Theme in the Report DesignerOnce you have the chart theme extension in the classpath, you should see it in the Theme Property combo box (the chartproperties are shown in the property sheet when a chart element is selected).Select the new chart theme. In the chart theme that has just been added to the classpath, the real time preview could not beavailable (if you need it, just restart iReport).234

Run your report. iReport should display a new report reflecting your customized chart theme, similar to the one shown inFigure 12-15.ChartsFigure 12-15 Area chart with a chart theme12.6 HTML5 ChartsHTML5 charts can be used to create interactive reports. They are also more attractive than the basic charts available iniReport. In this section, you will learn how to build a report containing a simple HTML5 chart. The following table describesthe available chart types:Table 12-1HTML5 Chart TypesIconDescriptionColumn charts - Compare values displayed as columnsColumn. Multiple measures of a group are depicted as individual columns.Stacked Column. Multiple measures of a group are depicted as portions of a singlecolumn whose size reflects the aggregate value of the group.Percent Column. Multiple measures of a group are depicted as portions of a singlecolumn of fixed size.235

<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>Figure 12-14 Chart theme exporterYou can set a name for your new theme in the window; this is the name that will be used by UR to identify yourtheme. Select the JAR to create. Optionally, you can automatically add the JAR to the <strong>iReport</strong> classpath, but remember to addthat JAR to your application, too, when you deploy the reports.12.5.3 Using a Chart Theme in the Report DesignerOnce you have the chart theme extension in the classpath, you should see it in the Theme Property combo box (the chartproperties are shown in the property sheet when a chart element is selected).Select the new chart theme. In the chart theme that has just been added to the classpath, the real time preview could not beavailable (if you need it, just restart <strong>iReport</strong>).234

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

Saved successfully!

Ooh no, something went wrong!