CR.7.44  LinearLineFrame

The LinearLineFrame object contains a continuous line frame that returns varying line styles. To create a LinearLineFrame object, call the LinearLineFrame constructor.

var frame = new LinearLineFrame('Quantity');

You can pass the name of a field (e.g., 'Quantity') to the constructor, or specify this later using the inherited VisualFrame.setField(field) property.

Note: Report script that modifies 'bindingInfo' should be placed in the onLoad handler.

Example (Report)

Bind a line-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("Total",Chart.NUMBER);

Chart1.bindingInfo.lineFrame = new LinearLineFrame;

 

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","Total"], ["NJ",300,1000], ["NY",200,1500]];

graph = new EGraph();

var elem = new PointElement("State", "Quantity")

var lframe = new LinearLineFrame();

var sframe = new StaticSizeFrame();

lframe.setField("Total");

sframe.setSize(10);

elem.setLineFrame(lframe);

elem.setSizeFrame(sframe);

graph.addElement(elem);

 

Full Name

inetsoft.graph.aesthetic.LinearLineFrame

See Also

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

<< StaticLineFrame.setLine(value) © 1996-2013 InetSoft Technology Corporation (v11.4) CR.7.45 CategoricalLineFrame >>