| Summary: | Chart titles should allow for javascript expressions | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | john mcteague <john.mcteague> |
| Component: | BIRT | Assignee: | Birt-Chart-inbox <Birt-Chart-inbox> |
| Status: | NEW --- | QA Contact: | Maggie Shen <lshen> |
| Severity: | normal | ||
| Priority: | P3 | CC: | bluesoldier |
| Version: | 3.7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Build Identifier: 3.7.0 To make the chart title dynamic based on a report parameter I need to add the following: /** * Called before generation of chart model to GeneratedChartState. * * @param chart * Chart * @param icsc * IChartScriptContext */ function beforeGeneration( chart, icsc ) { chart.getTitle().getLabel().getCaption().setValue( icsc.getExternalContext().getScriptable().getParameterValue("MyParam")) } This is too complex, the ChartTitle input field on the designer should allow expressions and that should be passed down to the chart title at runtime. Reproducible: Always