CR.9.2 GLine
The GLine object provides the following predefined line style constants:
GLine.THIN_LINE
GLine.DOT_LINE
GLine.DASH_LINE
GLine.MEDIUM_DASH
GLine.LARGE_DASH
You can also create a GLine object by passing a Chart constant (see Line Styles) to the object constructor, as follows:
var line = new GLine(Chart.DOT_LINE);
To create a user-defined style, pass a dash size and width (both type doubles) to the object constructor, as follows.
var line = new GLine(dashsize, width);
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("Company",Chart.NUMBER)
Chart1.bindingInfo.lineFrame = new StaticLineFrame;
Chart1.bindingInfo.lineFrame.line = GLine(20,10);

See Also
Line Styles, for the built-in styles available as Chart Constants constants.
StaticLineFrame, for information on using GLines.
| << CR.9.1 GTexture | © 1996-2013 InetSoft Technology Corporation (v11.5) | CR.9.3 GShape >> |