CR.7.38  PieShapeFrame

The PieShapeFrame object contains the shape styles for multi-dimensional “mini-pie” elements to be used together with a point-type (PointElement) chart. To create a PieShapeFrame object, call the PieShapeFrame constructor.

var frame = new PieShapeFrame("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. The dimension values are mapped proportionately to the areas of the pie slices.

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,2,3], ["NY", 300,2,4,4]];

graph = new EGraph();

var frame = new PieShapeFrame();

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

var sframe = new StaticSizeFrame(15);

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

elem.setShapeFrame(frame);

elem.setSizeFrame(sframe);

graph.addElement(elem);

 

Full Name

inetsoft.graph.aesthetic.PieShapeFrame

See Also

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

<< CR.7.37 BarShapeFrame © 1996-2013 InetSoft Technology Corporation (v11.5) CR.7.39 ProfileShapeFrame >>