MinorGridLineWidths
MinorGridLineWidths ( directionAxis ; distributionAxis ; stroke1 ; stroke2 ; . . . ; stroke1000 )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
directionAxis | int | 0..3 | all | |
distributionAxis | int | 0..3 | all | |
stroke1 | num[] | 0..1000 | 1 | |
stroke2 | num[] | 0..1000 | 1 | |
... | num[] | 0..1000 | 1 | |
stroke1000 | num[] | 0..1000 | 1 |
Examples
MinorGridLineWidths(x;y;0;1)
MinorGridLineWidths(y;x;0)
Description
The minor grid functions work the same way as the major grid functions. Please note that the minor grid can only be activated by defining a minor interval number greater than 1 in the Scaling() function.
| MINOR_GRID_LINE_WIDTHS_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(1.5 2.5 1 3 2.5) |
3 | BarChart() |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | /* Set up axes. */ |
8 | Scaling(y;linear;;;3;2) /* 3 major intervals, 2 minor intervals. */ |
9 | |
10 | AxisMajorTicks(all;0) |
11 | AxisMinorTicks(all;0) |
12 | /* Set up grid. */ |
13 | |
14 | MajorGridLineWidths(y;x;0) |
15 | |
16 | |
17 |
| MINOR_GRID_LINE_WIDTHS_02 |
1 | OpenDrawing(250;150) |
2 | ChartData(1.5 3.5 0.8 3 2) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | SymbolStyle(1;circle;5;1;crimson;;white) |
7 | ShadowStyle(all;2 2 3) |
8 | /* Set up axes. */ |
9 | |
10 | |
11 | AxisMajorTicks(all;0) |
12 | AxisMinorTicks(all;0) |
13 | /* Set up grid. */ |
14 | MajorGridLineWidths(y;x;0) |
15 | |
16 | |
17 | |
18 |
Furthermore, a dash pattern can be assigned to the grid line width by adding a list of dash lengths and gaps.
| MINOR_GRID_LINE_WIDTHS_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(1.5 2.5 1 3 2.5) |
3 | BarChart() |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | /* Set up axes. */ |
8 | |
9 | |
10 | AxisMajorTicks(all;0) |
11 | AxisMinorTicks(all;0) |
12 | /* Set up grid. */ |
13 | MajorGridLineWidths(y;x;0) |
14 | MajorGridLineWidths(x;y;1) |
15 | MajorGridLineColors(x;y;#bbb) |
16 | MinorGridLineWidths(x;y;1 2 2) |
17 | MinorGridLineColors(x;y;#bbb) |
18 |
More dash pattern examples can be found under Dash Patterns.