EGraph.getElementCount()
Returns the number of GraphElement objects currently on the chart.
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 or Viewsheet)
dataset = [["State","Total 1","Total 2"], ["NJ",200,500], ["NY",300,400]];
graph = new EGraph();
graph.addElement(new LineElement("State","Total 1"));
graph.addElement(new LineElement("State","Total 2"));
var elemCount = graph.getElementCount();
for (var i=0;i<elemCount;i++) {
graph.getElement(i).endArrow = true;
}
See Also
DataSet, to use a Data Block or query as the dataset source.
| << EGraph.getElement(index) | © 1996-2013 InetSoft Technology Corporation (v11.4) | EGraph.getForm(index) >> |