CR.7.43 StaticLineFrame
The StaticLineFrame object contains a line frame defined by explicit line data in the VisualFrame.setField(field) column, or by the fixed line in StaticLineFrame.setLine(value). To create a StaticLineFrame object, call the StaticLineFrame constructor.
var frame = new StaticLineFrame(GLine.LARGE_DASH);
You can pass a GLine object or a field name (e.g., 'Line') to the constructor, or specify this later using the StaticLineFrame.setLine(value) or 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.lineFrame = new StaticLineFrame;
Chart1.bindingInfo.lineFrame.line = GLine.LARGE_DASH;

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","Line"], ["NJ",200,Chart.THICK_LINE], ["NY",300,Chart.MEDIUM_DASH]];
graph = new EGraph();
var elem = new PointElement("State", "Quantity");
var sizeframe = new StaticSizeFrame(9);
var lineframe = new StaticLineFrame();
lineframe.setField("Line");
elem.setLineFrame(lineframe);
elem.setSizeFrame(sizeframe);
graph.addElement(elem);

Full Name
inetsoft.graph.aesthetic.StaticLineFrame
StaticLineFrame: setLine
See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.7.42 LineFrame | © 1996-2013 InetSoft Technology Corporation (v11.5) | StaticLineFrame.setLine(value) >> |