How to access chart elements by scripting? [message #89125] |
Wed, 09 November 2005 05:17 |
Eclipse User |
|
|
|
Hello,
how can I access elements, chart title, axis title, bars, labels, etc. of a
bar to modify it?
function beforeDrawDataPoint(dataPointHints, label)
{
T = label.getCaption();
T.setCaption("TEST"); // <-- causes error message saying:
// $NO-RB$ TypeError: setCaption is not a function. (<cmd>
}
label.setCaption("TEST"); // <-- causes error message saying:
// $NO-RB$ Can't find method
org.eclipse.birt.chart.model.component.impl.LabelImpl.setCap tion(string).
(<cmd>#3)
under the documentation of label, the setCaption method is described and
available, so what is wrong with my code?
How to access the charts title, the chars legend, the axis' titles?
I also tried with setValue(), set(), etc. but no success, and also nowhere
help/documentation available how to do scripting right.
Any help would be highly appreciated, thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03938 seconds