SizeFrame.setMax(value)
Specifies an arbitrary value representing the maximum allowable size for a graphical element. For schema and bar graphs, the values specified for the SizeFrame.setLargest(value) and SizeFrame.setSmallest(value) properties are relative to the max value. For example, if smallest=50 and max=100, the smallest value in the bound column is displayed at one half of the maximum allowable size. For point and line graphs, the max property is ignored.
Parameter
value Number of pixels, or relative size
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("Total",Chart.NUMBER);
Chart1.bindingInfo.sizeFrame = new LinearSizeFrame;
Chart1.bindingInfo.sizeFrame.smallest = 10;
Chart1.bindingInfo.sizeFrame.largest = 50;
Chart1.bindingInfo.sizeFrame.max = 100;

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", "width"], ["NJ", 200, 5],["NY", 300,10], ["PA",75,15]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity")
elem.sizeFrame = new LinearSizeFrame();
elem.sizeFrame.setField("width");
elem.sizeFrame.setSmallest(10);
elem.sizeFrame.setLargest(50);
elem.sizeFrame.setMax(100);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << SizeFrame.setLargest(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | SizeFrame.setSmallest(value) >> |