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
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 | |
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 | |
14 | AxisMajorTicks(all;0) |
15 | /* Set up grid. */ |
16 | MajorGridLineWidths(x;y;0.25) |
17 | MajorGridLineWidths(y;x;0) |
18 |
| BORDER_STYLE_02 |
1 | OpenDrawing(200;200) |
2 | ChartData(18 13 11 9 8 4) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | BorderStyle(all;;2;white) |
12 | ShadowStyle(all;2 2 3) |
13 | /* Set up axes. */ |
14 | |
15 | AxisMajorTicks(all;0) |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(x;y;0.25) |
18 | MajorGridLineWidths(y;x;0) |
19 |
| BORDER_STYLE_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(15 25 13 30 25 15) |
3 | |
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 | |
10 | AxisMajorTicks(all;0) |
11 | /* Set up grid. */ |
12 | MajorGridLineWidths(x;y;0.25) |
13 | MajorGridLineWidths(y;x;0) |
14 |
| BORDER_STYLE_04 |
1 | OpenDrawing(160;160) |
2 | ChartData(10 30 45 20 45 30) |
3 | |
4 | /* Set up styles. */ |
5 | FillStyle(1;#4682b420) |
6 | BorderStyle(1;smooth;1.5 2 2;#285880) |
7 | /* Set up axes. */ |
8 | |
9 | |
10 | AxisMajorTicks(all;0) |
11 | /* Set up grid. */ |
12 | MajorGridLineWidths(all;all;0.25) |
13 | |
14 |