CR.7.42  LineFrame

The LineFrame object contains the line design for visual chart objects. LineFrame objects allow you to represent additional data dimensions by using the physical attributes of chart elements, or to apply a fixed (static) line style.

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"], ["NJ",200], ["NY",300], ["PA",100]];

graph = new EGraph();

var elem = new LineElement("State", "Quantity");

var frame = new StaticLineFrame();

frame.setLine(GLine.DASH_LINE);

elem.setLineFrame(frame);

graph.addElement(elem)

 

Full Name

inetsoft.graph.aesthetic.LineFrame

See Also

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

<< CR.7.41 DefaultTextFrame © 1996-2013 InetSoft Technology Corporation (v11.4) CR.7.43 StaticLineFrame >>