Scale.setDataFields(arr)

Specifies the fields to use for initializing the scale; i.e., determining the maximum and minimum values. If left unspecified, the values in the Scale.setFields(field) property are used for this purpose.

Parameter

arr Array of Strings

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

graph = new EGraph();

var qscale = new LogScale();

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

qscale.setDataFields(["Total"]);

graph.addElement(elem)

graph.setScale("Quantity", qscale);

See Also

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

<< Scale.setAxisSpec(spec) © 1996-2013 InetSoft Technology Corporation (v11.4) Scale.setFields(field) >>