Calling the Simple Chart API from Script(BIRT)
A new Simple Chart API is available to modify Chart properties with the release of BIRT 2.2 RC0. This API can be within RE/DE API applications as well as from the scripting environment within a report. This example illustrates many of the methods available.
BIRT Version Compatibility
This example was built and tested with BIRT 2.2 RC0.
Add a URL to your bugzilla attachment. eg. Example Report
The simple Chart API is described in detail in [BPS66]. This example shows many chart properties being changed within the beforeFactory eventHandler. For example to change the chart output type the following script can be used.
//first get handle to the chart (Name your Charts) //Before Factory var chart1 = this.getReportElement( "Chart1" ); chart1.setOutputType("JPG");
Many examples exist in the example report, including changing titles, dimensions, fonts, etc.
Please enter comments below by selecting the edit icon to the right. You will need a Bugzilla account to add comments.