CR.6.11 PowerScale
The PowerScale object contains a scale that maps values to physical attributes by raising them to a specified exponent. To create a PowerScale object, call the PowerScale constructor with the fields for which the scale should be generated.
var qscale = new PowerScale('Last Year', 'This Year');
You can pass the names of the fields (e.g., 'Last Year', 'This Year') for which the scale should be generated to the constructor, or specify these later using the inherited Scale.setFields(field) property.
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 qscale = new PowerScale();
qscale.setFields(["Quantity"])
var elem = new IntervalElement("State", "Quantity")
qscale.setExponent(0.5);
graph.setScale("Quantity", qscale);
graph.addElement(elem);

Full Name
inetsoft.graph.scale.PowerScale
PowerScale: setExponent
Inherits from
LinearScale: setIncrement, setMax, setMin, setMinorIncrement, setReversed, setScaleRange
See Also
DataSet, to use a Data Block or query as the dataset source.
| << LogScale.setBase(value) | © 1996-2013 InetSoft Technology Corporation (v11.4) | PowerScale.setExponent(value) >> |