CategoricalShapeFrame.setShape(val,shape)
Assigns a shape to the specified value.
Parameter
val data value
shape GShape or GShape.ImageShape object
Note: Report script that modifies 'bindingInfo' should be placed in the onLoad handler.
Example (Report)
Bind a point-type chart to the sample 'All Sales' query, with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script in the onLoad handler.
Chart1.bindingInfo.setShapeField("Employee",Chart.STRING);
Chart1.bindingInfo.shapeFrame = new CategoricalShapeFrame;
Chart1.bindingInfo.shapeFrame.setShape('Robert', GShape.FILLED_CIRCLE);
Chart1.bindingInfo.shapeFrame.setShape('Sue', GShape.FILLED_DIAMOND);
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 PointElement("State", "Quantity");
sizeframe = new StaticSizeFrame("State");
sizeframe.setSize(10);
shapeframe = new CategoricalShapeFrame("State");
shapeframe.setShape('NJ',GShape.FILLED_CIRCLE);
shapeframe.setShape('NY',GShape.FILLED_DIAMOND);
elem.setShapeFrame(shapeframe);
elem.setSizeFrame(sizeframe);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.7.30 CategoricalShapeFrame | © 1996-2013 InetSoft Technology Corporation (v11.4) | CR.7.31 StaticShapeFrame >> |