SizeFrame.setLargest(value)

Specifies the highest value in the range. For point and line graphs, this is the size (in pixels) at which the largest value in the bound column is displayed. Smaller values are scaled according to the mapping defined by the object's scaling method (e.g., linear for LinearSizeFrame, etc.).

For schema and bar graphs, the value specified for the largest property is relative to the SizeFrame.setMax(value) value. For example, if largest=50 and max=100, the largest value in the bound column is displayed at one half of the maximum allowable size. The value of largest should be less than the value of max.

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.

<< CR.7.13 SizeFrame © 1996-2013 InetSoft Technology Corporation (v11.4) SizeFrame.setMax(value) >>