CR.5.3  LineElement

The LineElement object contains the visual elements for a line chart. To create a new LineElement object, call the LineElement constructor.

var elem = new LineElement("State", "Quantity");

You can pass one, two, or three field names (e.g., 'State', 'Quantity') to the constructor, or specify these later using the addDim() and addVar() methods.

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"], ["NJ", 100], ["NY", 300]];

graph = new EGraph();

var elem = new LineElement("State", "Quantity")

graph.addElement(elem);

 

Full Name

inetsoft.graph.element.LineElement

LineElement: setClosed, setEndArrow, setStackGroup, setStackNegative, setStartArrow

See Also

DataSet, to use a Data Block or query as the dataset source.

<< IntervalElement.setStackNegative(boolean) © 1996-2013 InetSoft Technology Corporation (v11.5) LineElement.setClosed(boolean) >>