Setting Y-Axis Title from persistent global variable [message #976800] |
Thu, 08 November 2012 21:38 |
|
I have a graph in a table. One of the detail rows is the column "Units". I have a persistent global variable name "Y_AXIS_UNITS". I set it onRender for that row. It works b/c I used it incorrectly to set the labels. I was using the method beforeDrawAxisLabel. Now I am using beforeDrawAxisTitle and I am trying to set the Y Axis Title to "Value <Units Value>". The problem is that normally to get the global variable I would normally use the following code: value = context.getExternalContext().getScriptable().getPersistentGlobalVariable("Y_AXIS_UNITS") However, the last method, getPersistentGlobalVariable is not available to me through icsc. How can I get this value and set the title? I have the following code:
beforeDrawAxisTitle( axis, label, icsc )
{
importPackage(Packages.org.eclipse.birt.chart.model.attribute);
if(axis.getType() == AxisType.LINEAR_LITERAL)
{
label.getCaption().setValue("Units go here");
}
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds