EGraph.setScale(field, scale)

Sets the specified Scale for the given axis. See Chart Coordinates & Scaling for available scales.

Parameters

field name of axis to receive scale (String)

scale scale to apply to axis (Scale)

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 LineElement("State", "Quantity");

var qscale = new LinearScale("Quantity");

qscale.setMin(100);

qscale.setMax(500);

graph.addElement(elem);

graph.setScale("Quantity", qscale);

See Also

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

Changing Chart Scaling, for information on setting scales.

Chart Coordinates & Scaling, for available scales.

<< EGraph.setCoordinate(coord) © 1996-2013 InetSoft Technology Corporation (v11.5) EGraph.setXTitleSpec(spec) >>