Skip to main content
Hitachi VantaraPentaho Documentation
Pentaho Documentation

Add a Chart to Your Report

So far you've seen a small subset of features associated with Report Designer. In this exercise, you will add a chart to your report.

  1. Click File > Open and find the report you just saved. Click OK.
  2. In the palette, click and drag a File:/rd_chart.pngChart into the Report Footer band.
  3. Use the resizing handles to center and stretch the chart. You can also adjust the width of the band. File:/rd_24.png
  4. Double-click the sample chart.
  5. The type of chart most appropriate for your report is a pie chart. In the top portion of the Edit Chart dialog box, select the pie chart icon.
    Note: Notice that the pie chart properties that define its look-and-feel are listed in the left pane of the Edit Chart dialog box. Properties associated with the data in the chart are listed in the right pane.
  6. Go to the Title properties; net to the chart-title property, type Product Pie Chart.
  7. Under Common, click the down arrow next to value-column click the ellipsis [...] to open the Edit Array dialog box.

    The value-column specifies the actual values (measures) you want to chart. In this instance, you want to chart the quantity ordered.

    File:/rd_26.png
  8. Click in the blank field to expose the drop-down arrow.
  9. Select QUANTITYORDERED from the list and click OK.
  10. Click OK to exit the Edit Chart dialog box.
  11. Under Series click the ellipsis [...] next to series-by-field to open the Edit Array dialog box.

    The series-by-field specifies the field you are charting. In this instance you are charting by product line. Series are usually placed in the chart legend.

  12. Click File:/add.png(Add).
  13. Click in the blank field to expose the drop-down arrow.
  14. Select PRODUCTLINE from the list and click OK.
  15. Click OK to exit the Edit Chart dialog box.
  16. Click File:/preview_eye.png (Preview) to display your report.
  17. When the report displays, click the double arrows to go to the last page. File:/rd_27.png

    The chart you created appears on the last page of the report. If you want to display a bar or line chart instead, use the chart settings below. You have to add the series-by-value setting manually in the Edit Array dialog box. Click File:/add.png (Add) and type SALES; click File:/add.png (Add) and type COST. Run the report to display the bar chart.

    File:/rd_bar_chart_settings.png

    File:/rd_bar_chart.png

  18. Save your report. You are now ready to add a parameter to your report.