CR.5.5  PointElement

The PointElement object contains the visual elements for a point (scatter) chart. To create a new PointElement object, call the PointElement constructor.

var elem = new PointElement("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", "Quantity"], ["NJ", 200], ["NY", 300]];

graph = new EGraph();

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

graph.addElement(elem);

 

Full Name

inetsoft.graph.element.PointElement

See Also

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

<< SchemaElement.addSchema(col) © 1996-2013 InetSoft Technology Corporation (v11.5) CR.5.6 AreaElement >>