BorderStyle

BorderStyle ( 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 black
colorVariant int -1..128 solid
Examples

BorderStyle(1;​poly;​2)

BorderStyle(2;​smooth;​2;​black)

BorderStyle(all;​none)

Description

As the default, all borders are black and one-pixel wide. By using the BorderStyle() function, each data series can be assigned a separate border. In addition, the border of some charts 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.

BORDER_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(1.5;​ 2.5;​ 1;​ 3;​ 2.5)

3

BarChart(shadow;​;​50)

4

/* Set up styles. */

5

FillColorScheme(desert)

6

BorderStyle(1;​poly;​1.5;​#476e3f)

7

BorderStyle(2;​;​1;​#bb8e30)

8

BorderStyle(3;​none)

9

BorderStyle(4;​;​3;​#757b61)

10

BorderStyle(5;​;​2;​#c7a771)

11

ShadowStyle(all;​2 2 3)

12

/* Set up axes. */

13

AxisLine(all;​0)

14

AxisMajorTicks(all;​0)

15

/* Set up grid. */

16

MajorGridLineWidths(x;​y;​0.25)

17

MajorGridLineWidths(y;​x;​0)

18

CloseDrawing()

BORDER_STYLE_01
BORDER_STYLE_02
1

OpenDrawing(200;​200)

2

ChartData(18 13 11 9 8 4)

3

PieChart(label+shadow;​;​50)

4

/* Set up styles. */

5

FillStyle(1;​#063e9e;​shaded)

6

FillStyle(2;​#ffb400;​shaded)

7

FillStyle(3;​#f81a53;​shaded)

8

FillStyle(4;​#0073dd;​shaded)

9

FillStyle(5;​#00a79d;​shaded)

10

FillStyle(6;​#00bed7;​shaded)

11

BorderStyle(all;​;​2;​white)

12

ShadowStyle(all;​2 2 3)

13

/* Set up axes. */

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

BORDER_STYLE_02
BORDER_STYLE_03
1

OpenDrawing(250;​150)

2

ChartData(15 25 13 30 25 15)

3

AreaChart(symbol)

4

/* Set up styles. */

5

FillStyle(1;​#4682b420)

6

BorderStyle(1;​step;​1;​#4682b4)

7

SymbolStyle(1;​circle;​4.5;​1;​#4682b4;​;​white)

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()

BORDER_STYLE_03
BORDER_STYLE_04
1

OpenDrawing(160;​160)

2

ChartData(10 30 45 20 45 30)

3

RadarChart()

4

/* Set up styles. */

5

FillStyle(1;​#4682b420)

6

BorderStyle(1;​smooth;​1.5 2 2;​#285880)

7

/* Set up axes. */

8

Scaling(;​linear;​0;​50;​5)

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid. */

12

MajorGridLineWidths(all;​all;​0.25)

13

GridFrame(all;​0.5;​#888)

14

CloseDrawing()

BORDER_STYLE_04
Scroll to Top