MajorGridStripeColors
MajorGridStripeColors ( directionAxis ; distributionAxis ; color1 ; color2 ; . . . ; color1000 )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
directionAxis | int | 0..3 | all | |
distributionAxis | int | 0..3 | all | |
color1 | rgba | 0..255 | gray | |
color2 | rgba | 0..255 | gray | |
... | rgba | 0..255 | gray | |
color1000 | rgba | 0..255 | gray |
Examples
MajorGridStripeColors(x;y;lightGray;gray)
Description
As an option, grid stripes can be used instead of grid lines or also in combination with grid lines. The setup of the grid stripe functions is the same as for the grid line functions MajorGridLineColors() and MajorGridLinePatterns() .
| MAJOR_GRID_STRIPE_COLORS_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(1.5 2.5 1 3.5 2.5) |
3 | BarChart() |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | /* Set up axes. */ |
8 | |
9 | AxisMajorTicks(all;0) |
10 | /* Set up grid. */ |
11 | MajorGridStripeColors(x;y;#efefef;#e8e8e8) /* Horizontal grid stripes. */ |
12 | MajorGridLineColors(x;y;#d8d8d8) |
13 | MajorGridLineWidths(y;x;0) /* Hide vertical grid lines. */ |
14 | |
15 |
| MAJOR_GRID_STRIPE_COLORS_02 |
1 | OpenDrawing(250;150) |
2 | ChartData(5 3 8 6 8 9 6) |
3 | |
4 | RadarChartOptions(2) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b420) |
7 | BorderStyle(1;smooth;1.5 6 2;#4682b4) |
8 | /* Set up axes. */ |
9 | |
10 | |
11 | AxisMajorTicks(x;0) |
12 | /* Set up grid. */ |
13 | MajorGridLineWidths(x;y;0) |
14 | MajorGridLineColors(y;x;#d8d8d8) |
15 | MajorGridStripeColors(y;x;#efefef;#e8e8e8;#e0e0e0) |
16 |
| MAJOR_GRID_STRIPE_COLORS_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(1.5 2.5 1 3.5 2.5) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | /* Set up axes. */ |
8 | ScalingOptions(y;on) /* y-scaling top to bottom. */ |
9 | |
10 | |
11 | AxisMajorTicks(all;0) |
12 | AxisMinorTicks(all;0) |
13 | /* Set up grid. */ |
14 | MinorGridStripeColors(y;x;#efefef;#e8e8e8;#e0e0e0;#d8d8d8) /* Vertical minor grid stripes. */ |
15 | MajorGridLineColors(y;x;darkGray) /* Vertical major grid lines. */ |
16 | MajorGridLineWidths(x;y;0) /* Hide horizontal major grid lines. */ |
17 | MinorGridLineWidths(y;x;0) /* Hide vertical minor grid lines. */ |
18 | |
19 |