CR.6.3 RectCoord
The RectCoord object contains rectangular coordinates against which data can be represented. To create a RectCoord object, pass a pair of Scale objects to the RectCoord constructor:
var rect = new RectCoord(xscale,yscale);
You can pass a set of Scale objects (e.g., 'xscale', 'yscale', etc.) to the constructor, or specify this later using the RectCoord.setXScale(scale) and RectCoord.setYScale(scale) properties.
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 IntervalElement("State", "Quantity");
var sscale = new CategoricalScale("State");
var qscale = new LinearScale("Quantity");
var coord = new RectCoord(sscale,qscale);
graph.setCoordinate(coord);
graph.addElement(elem);
Full Name
inetsoft.graph.coord.RectCoord
RectCoord: setXScale, setYScale, setYScale2
Inherits from
See Also
DataSet, to use a Data Block or query as the dataset source.
Rectangular Coordinates, for a walkthrough of rectangular coordinates.
| << PolarCoord.setCoordinate(coord) | © 1996-2013 InetSoft Technology Corporation (v11.4) | RectCoord.setXScale(scale) >> |