GraphForm.setLine(value)

Specifies the line style used to draw the form.

Type

value a GLine constant

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

graph = new EGraph();

var form = new LineForm();

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

form.addPoint(new java.awt.Point(0,0));

form.addPoint(new java.awt.Point(100,100));

form.addPoint(new java.awt.Point(200,100));

form.setLine(GraphConstants.DASH_LINE);

graph.addForm(form);

graph.addElement(elem);

 

See Also

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

<< GraphForm.setInPlot(boolean) © 1996-2013 InetSoft Technology Corporation (v11.4) GraphForm.setMeasure(col) >>