Book Image

Pentaho 8 Reporting for Java Developers

By : Jasmine Kaur, Francesco Corti
Book Image

Pentaho 8 Reporting for Java Developers

By: Jasmine Kaur, Francesco Corti

Overview of this book

This hands-on tutorial, filled with exercises and examples, introduces the reader to a variety of concepts within Pentaho Reporting. With screenshots that show you how reports look at design time as well as how they should look when rendered as PDF, Excel, HTML, Text, Rich-Text-File, XML, and CSV, this book also contains complete example source code that you can copy and paste into your environment to get up-and-running quickly. Updated to cover the features of Pentaho 8, this book will teach you everything you need to know to build fast, efficient reports using Pentaho. If your interest lies in the technical details of creating reports and you want to see how to solve common reporting problems with a minimum of fuss, this is the book for you.
Table of Contents (25 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Including sparkline charts in reports


If you need to show a trend among a small number of related numerical data points, a sparkline chart may be appropriate. Different from charts and used mainly in the headers or grouping bands, the sparkline charts are often used in the details of a Pentaho report, of course if it makes sense to do so.

Note

Sparkline charts require comma-separated values for input, so if your data is not in that format, you must create a function to pull it from your data source and put commas between each data point.

Pentaho Reporting provides three different sparkline charts: bar-sparkline represented by the

 icon, line-sparkline represented by the

 icon, and pie-sparkline represented by the

 icon. As usual, to use the sparkline chart, drag the icon from the Report Designer palette and drop it in the place where you want to see the chart. All the configurations and settings can be managed from the element properties panel, as you saw in Chapter 5Design and Layout in...