LineStyle
LineStyle ( seriesIndex ; shape ; stroke ; color ; colorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | 0..10000 | all | |
shape | int | 0..5 | poly | |
stroke | num[] | 0..1000 | 1 | Dimension:[pt] |
color | rgba | 0..255 | (see desc.) | |
colorVariant | int | -1..128 | solid |
Description
By using the LineStyle() function, each data series can be assigned a separate line style. Series, which are not explicitly assigned a style, are represented in one of the default colors, i.e. LineColorScheme(classic).
In addition, the curves can be varied using the argument shape. Six constants are available for this; details can be found in Line Shapes. Furthermore, a dash pattern can be assigned to the border width by adding a list of dash lengths and gaps. Examples can be found under Dash Patterns.
| LINE_STYLE_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(22 27 23 29 25 23; |
3 | 12 17 13 19 15 13) |
4 | |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | SymbolStyle(1;circle;4.5;1.0;crimson;;white) |
9 | SymbolStyle(2;none) |
10 | /* Set up axes. */ |
11 | |
12 | AxisMajorTicks(all;0) |
13 | /* Set up grid. */ |
14 | MajorGridLineWidths(x;y;0.25) |
15 | MajorGridLineWidths(y;x;0) |
16 |
| LINE_STYLE_02 |
1 | OpenDrawing(250;150) |
2 | ChartData(22 27 23 29 25 23; |
3 | 12 17 13 19 15 13) |
4 | |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | /* Set up axes. */ |
9 | |
10 | AxisMajorTicks(all;0) |
11 | /* Set up grid. */ |
12 | MajorGridLineWidths(x;y;0.25) |
13 | MajorGridLineWidths(y;x;0) |
14 |