CR.7.13  SizeFrame

The SizeFrame object contains the size scale for visual chart objects. You can use a SizeFrame object to represent data dimensions with size (size coding), or to apply a fixed (static) 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)

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.

var frame = new StaticSizeFrame;

frame.setSize(30);

var elem = Chart1.graph.getElement(0); // point elements

elem.setSizeFrame(frame);

 

Full Name

inetsoft.graph.aesthetic.SizeFrame

SizeFrame: setLargest, setMax, setSmallest

See Also

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

<< CategoricalColorFrame.setColor(val,color) © 1996-2013 InetSoft Technology Corporation (v11.5) SizeFrame.setLargest(value) >>