EGraph.getElement(index)
Returns a handle to the GraphElement object specified by the index. This is useful in cases where the element was not explicitly assigned to a variable at creation time.
Parameter
index Integer index of element
Note: Script that modifies 'graph' should be placed at the element level. See Adding Element-Level Script in Report Scripting and Adding Component Script in Dashboard Scripting for more information.
Example (Report)
Bind a bar-type chart to the sample 'All Sales' query, with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script:
var elem = graph.getElement(0);
elem.setHint(GraphElement.HINT_SHINE,'false');
Example (Viewsheet)
Create a Viewsheet based on the 'Sales Explore' Worksheet. Bind a bar-type chart with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script:
var elem = graph.getElement(0);
elem.setHint(GraphElement.HINT_SHINE,'false');
See Also
Representing Multiple Measures, to add multiple elements.
Chart Elements, for available elements.
| << EGraph.getCoordinate() | © 1996-2013 InetSoft Technology Corporation (v11.4) | EGraph.getElementCount() >> |