Reader small image

You're reading from  Pentaho 5.0 Reporting by Example: Beginner's Guide

Product typeBook
Published inAug 2013
PublisherPackt
ISBN-139781782162247
Edition1st Edition
Tools
Right arrow
Author (1)
Right arrow

Time for action – creating a pie chart


We will add a pie chart to our report to display information about the movies rented. Then we will configure the type of chart we want to visualize, its data source, and other characteristics.

  1. We will create a chart to display an analysis of the percentage of movies rented by rating. Add a chart to the Report Header section, dragging-and-dropping the () Chart () object.
  2. Double-click on Chart to start configuring it.

  3. In the upper part, choose the pie chart type:

  4. In the right-hand part, configure the data source as follows:

    • value-column = count_rental (the value under analysis)

    • series-by-field = [rating] (the item to be represented as a portion of the pie)

  5. In the left-hand part, configure the following:

    • chart-title = Percentage of films rented by Rating

    • label-font = FreeSans-BOLD-14

    • label-format = {0}: {2}

    • 3-D = True

    • show-legend = False

  6. Next, click on OK to continue. If we preview it, we will see this:

What just happened?

We added a Chart object to the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Pentaho 5.0 Reporting by Example: Beginner's Guide
Published in: Aug 2013Publisher: PacktISBN-13: 9781782162247