CR.5.4  SchemaElement

The SchemaElement object contains user-defined visual elements that can be added to the graph. To create a new SchemaElement object, call the SchemaElement constructor.

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

You can pass a set of 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","Hi","Upper","Median","Lower","Lo"],["NJ",200,180,150,120,100],["NJ",220,170,140,110,105],["NY",300,250,230, 150,80]];

graph = new EGraph();

var elem = new SchemaElement();

elem.addDim("State")

elem.addSchema("Hi","Upper","Median","Lower","Lo")

elem.setPainter(new BoxPainter());

graph.addElement(elem);

 

Full Name

inetsoft.graph.element.SchemaElement

SchemaElement: setPainter

See Also

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

<< LineElement.setStartArrow(boolean) © 1996-2013 InetSoft Technology Corporation (v11.5) SchemaElement.setPainter(painter) >>