CR.6.4  Rect25Coord

The Rect25Coord object is the same as the RectCoord object, but creates a 3D effect for elements. To create a Rect25Coord object, call the object constructor:

var rect = new Rect25Coord(xscale,yscale);

You can pass a set of Scale objects (e.g., 'xscale', 'yscale', etc.) to the constructor, or specify these later using the inherited 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 Rect25Coord(sscale,qscale);

graph.setCoordinate(coord);

graph.addElement(elem);

 

Full Name

inetsoft.graph.coord.Rect25Coord

See Also

DataSet, to use a Data Block or query as the dataset source.

<< RectCoord.setYScale2(scale) © 1996-2013 InetSoft Technology Corporation (v11.5) CR.6.5 ParallelCoord >>