GraphElement.addVar(field)
GraphElement.setCollisionModifier(value)
GraphElement.setColorFrame(frame)
GraphElement.setInPlot(boolean)
GraphElement.setLabelPlacement(value)
GraphElement.setLineFrame(frame)
GraphElement.setHint(type,value)
GraphElement.setShapeFrame(frame)
GraphElement.setSizeFrame(frame)
GraphElement.setTextFrame(frame)
Add a variable to a GraphElement object. A variable is plotted on the Y-axis.
Parameter
field String containing name of variable
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", "Quantity", "Total"],["NY",550,2500],["NJ",370,3000]];
graph = new EGraph();
var elem = new LineElement("State","Quantity");
elem.addVar("Total");
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << GraphElement.addDim(field) | © 1996-2013 InetSoft Technology Corporation (v11.5) | GraphElement.setCollisionModifier(value) >> |