PolarCoord.setCoordinate(coord)
Specifies the rectangular coordinates on which the polar coordinates should be based.
Parameter
coord a RectCoord 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 = [["Direction", "Score"], [(Math.PI/2),20], [(Math.PI/4),30], [(Math.PI),35]];
graph = new EGraph();
var elem = new PointElement("Direction", "Score");
var xscale = new LinearScale("Direction");
var yscale = new LinearScale("Score");
yscale.setMin(0);
yscale.setMax(40);
xscale.setMin(0);
xscale.setMax(1.95*Math.PI);
xscale.setIncrement(Math.PI/8);
var rect = new RectCoord(xscale,yscale);
var polar = new PolarCoord();
polar.setCoordinate(rect);
graph.setCoordinate(polar);
graph.addElement(elem);
Inherits from
See Also
DataSet, to use a Data Block or query as the dataset source.
| << PolarCoord.setType(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | CR.6.3 RectCoord >> |