CR.7.14 StaticSizeFrame
The StaticSizeFrame object contains a size frame defined by explicit size data in the VisualFrame.setField(field) column, or by the fixed size in StaticSizeFrame.setSize(value). To create a StaticSizeFrame object, call the StaticSizeFrame constructor.
var frame = new StaticSizeFrame(10);
You can pass a numerical size (e.g., 10) to the constructor, or specify this later using the StaticSizeFrame.setSize(value) property.
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.setSizeField("Company",Chart.STRING);
Chart1.bindingInfo.sizeFrame = new StaticSizeFrame;
Chart1.bindingInfo.sizeFrame.setSize(30);

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","Size"],["NJ",200,1], ["NY",300,10]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity");
var frame = new StaticSizeFrame();
frame.setField("Size");
elem.setSizeFrame(frame);
graph.addElement(elem);

Full Name
inetsoft.graph.aesthetic.StaticSizeFrame
StaticSizeFrame: setSize
Inherits from
SizeFrame: setLargest, setMax, setSmallest
VisualFrame: setField, setLegendSpec, setScale, setScaleOption
See Also
DataSet, to use a Data Block or query as the dataset source.
| << SizeFrame.setSmallest(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | StaticSizeFrame.setSize(value) >> |