CR.6.2 PolarCoord
The PolarCoord object contains polar coordinates against which data can be represented. To create a PolarCoord object, call the PolarCoord constructor:
var polar = new PolarCoord(rect);
You can pass a RectCoord object to the constructor (e.g., 'rect'), or specify this later using the PolarCoord.setCoordinate(coord) 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"], ["CA",200], ["NY",300]];
graph = new EGraph();
var elem = new IntervalElement("Quantity");
var yscale = new LinearScale("Quantity");
var rect = new RectCoord(null, yscale);
var polar = new PolarCoord(rect);
var frame = new CategoricalColorFrame();
var range = new StackRange();
polar.setType(PolarCoord.THETA);
frame.setField("State");
elem.setColorFrame(frame);
elem.setCollisionModifier(GraphElement.MOVE_STACK);
yscale.setScaleRange(range);
var spec = new AxisSpec();
spec.setLabelVisible(false);
spec.setTickVisible(false);
spec.setLineVisible(false);
yscale.setAxisSpec(spec);
graph.setCoordinate(polar);
graph.addElement(elem);

Full Name
inetsoft.graph.coord.PolarCoord
PolarCoord: setCoordinate, setType
Inherits from
See Also
DataSet, to use a Data Block or query as the dataset source.
Polar Coordinates, for a walkthrough of polar coordinates.
| << \Coordinate.transpose() | © 1996-2013 InetSoft Technology Corporation (v11.5) | PolarCoord.setType(value) >> |