LineStyle

Modified in version 5.0.4

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
Examples

LineStyle(1;​smooth;​2)

LineStyle(2;​step)

LineStyle(all;​poly;​2;​red)

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

LineChart(symbol)

5

/* Set up styles. */

6

LineStyle(1;​jump;​1.0;​crimson)

7

LineStyle(2;​step;​2;​steelBlue)

8

SymbolStyle(1;​circle;​4.5;​1.0;​crimson;​;​white)

9

SymbolStyle(2;​none)

10

/* Set up axes. */

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

LINE_STYLE_01
LINE_STYLE_02
1

OpenDrawing(250;​150)

2

ChartData(22 27 23 29 25 23;​

3

12 17 13 19 15 13)

4

LineChart()

5

/* Set up styles. */

6

LineStyle(1;​poly;​1 9 4 2 4;​crimson)

7

LineStyle(2;​smooth;​2 2 2;​steelBlue)

8

/* Set up axes. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid. */

12

MajorGridLineWidths(x;​y;​0.25)

13

MajorGridLineWidths(y;​x;​0)

14

CloseDrawing()

LINE_STYLE_02
Scroll to Top