TriCoord.setScale(scale)
Specifies the scale to use for all three axes. This can also be specified as an argument to the constructor.
Parameter
scale a Scale object
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 = [["Quantity","Total","Returns"],[50,50,100],[75,100,25],[100,100,0]];
graph = new EGraph();
var elem = new PointElement();
var qscale = new LinearScale("Quantity");
qscale.setMin(0);
qscale.setMax(200);
var spec = new AxisSpec();
spec.setGridStyle(GraphConstants.DOT_LINE);
spec.setGridColor(java.awt.Color.red);
qscale.setAxisSpec(spec);
var coord = new TriCoord();
coord.setScale(qscale);
elem.addDim("Quantity");
elem.addDim("Total");
elem.addVar("Returns");
graph.addElement(elem);
graph.setScale("Quantity", qscale);
graph.setScale("Total", qscale);
graph.setScale("Returns", qscale);
graph.setCoordinate(coord);

Inherits from
See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.6.6 TriCoord | © 1996-2013 InetSoft Technology Corporation (v11.4) | CR.6.7 FacetCoord >> |