CR.7.35  StarShapeFrame

The StarShapeFrame object contains the shape styles for multi-dimensional “star” (closed line) elements. To create a StarShapeFrame object, call the StarShapeFrame constructor.

var frame = new StarShapeFrame("m1","m2","m3");

You can pass a set of field names (e.g., 'm1', 'm2', 'm3') to the constructor, or specify this later using the inherited MultiShapeFrame.setFields(arr) 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","m1","m2","m3"], ["NJ", 200,5,1,3], ["NY", 300,3,4,4]];

graph = new EGraph();

var frame = new StarShapeFrame();

var elem = new PointElement("State", "Quantity");

frame.setFields(["m1","m2","m3"]);

elem.setShapeFrame(frame);

graph.addElement(elem);

 

Full Name

inetsoft.graph.aesthetic.StarShapeFrame

See Also

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

<< CR.7.34 ThermoShapeFrame © 1996-2013 InetSoft Technology Corporation (v11.4) CR.7.36 SunShapeFrame >>