AxisLine
AxisLine ( axisIndex ; stroke ; color ; colorVariant )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| axisIndex | int | 0..10000 | all | |
| stroke | num[] | 0..1000 | 1 | Dimension:[pt] |
| color | rgba | 0..255 | black | |
| colorVariant | int | -1..128 | solid |
Description
By using the AxisLine() function, the appearance of the axis lines can be controlled. As the default, the axis lines are black and 1-pixel wide. The line stroke (thickness, dash pattern and color) can be varied by the arguments stroke, color and colorVariant.
| | AXIS_LINE_01 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(5 8 13 18 14 18 30) |
| 3 | |
| 4 | /* Set up styles. */ |
| 5 | |
| 6 | SymbolStyle(1;circle;4.5;1;#4682b4;;white) |
| 7 | /* Set up axes. */ |
| 8 | |
| 9 | AxisMajorTicks(all;6;1;#638b5b;;out) |
| 10 | AxisMajorTickLabelStyle(all;Verdana;10;bold;#638b5b) |
| 11 | /* Set up grid. */ |
| 12 | MajorGridLineColors(x;y;#638b5b) |
| 13 | MajorGridLineWidths(x;y;0.25) |
| 14 | MajorGridLineWidths(y;x;0) |
| 15 |
| | AXIS_LINE_02 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(5 8 13 18 14 18 30) |
| 3 | |
| 4 | /* Set up styles. */ |
| 5 | |
| 6 | SymbolStyle(1;circle;5;1;#4682b4;;white) |
| 7 | /* Set up axes. */ |
| 8 | Scaling(y;linear;0;30;3;5) /* 3 major and 5 minor intervals. */ |
| 9 | |
| 10 | AxisMajorTicks(x;0) /* Hide x-axis tick marks. */ |
| 11 | AxisMajorTicks(y;5;0.25;gray) |
| 12 | AxisMinorTicks(y;2;1;gray) |
| 13 | /* Set up grid. */ |
| 14 | MajorGridLineWidths(x;y;0.25) |
| 15 | MajorGridLineWidths(y;x;0) |
| 16 | MinorGridLineWidths(x;y;0) |
| 17 |