CGG - Graphics Generator
CGG is a Pentaho plugin that allows the user to export CCC/CDE charts as images, enabling the inclusion of CDE charts inside Pentaho reports. Quite simply, this plugin is able to render, on server-side, exactly the same chart that is rendered on the browser by CDE/CDF. CGG main features include:
- seamless integration with CDE;
- exposes the chart as an url, so you can use your chart exports wherever you can embed a link;
- runs a CCC chart definition on server-side and outputs the chart as an image or as a SVG file.
Credits: Webdetails Team, Lead - Pedro Alves
Available in: Marketplace
Open up an existing CDE Dashboard in Edit Mode and press the keyboard shortcut "Shift + G". This will prompt a popup, where you can choose which charts in the Dashboard you want to render as CGG charts.
Call the URL: <pentaho server url>/pentaho/content/cgg/draw?script=<path to the script>, where <path to the script> is, e.g., /steel-wheels/dashboards/Test.js. It means that you want to export the chart called Test, from a Dashboard saved inside the folder dashboards, in your steel-wheels solution.
Don't forget to export the chart before saving the Dashboard. Otherwise, it will not work.
Optionally, you can add some extra parameters to the request. If your chart definition expects a customerNumber as a parameter, simply append paramcustomerNumber= to the query string.
You can also change the output to return either PNG or SVG files (using outputType=png or outputType=svg in the query string.