GridLocation
GridLocation ( planeIndex ; gridLocation )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| planeIndex | int | 0..3 | all | |
| gridLocation | int | 0..2 | back |
Examples
GridLocation(all;none) /* Hide grid. */
Description
As the 1st argument planeIndex the constant xy or all is to be entered for 2-dimensional charts. In addition, for 3-dimensional bar and Gantt charts the plane constants xz and yz are available. The z-axis points in the direction of the viewer. As the default, the grid is always in the background of a chart (gridLocation = back).
| | GRID_LOCATION_01 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(1.5 2.5 1.5 2 1.5 3) |
| 3 | |
| 4 | /* Set up styles. */ |
| 5 | FillStyle(1;#d9ed9f) |
| 6 | BorderStyle(1;poly;2.5;#82b071) |
| 7 | /* Set up axes. */ |
| 8 | |
| 9 | AxisMajorTicks(all;0) |
| 10 | /* Set up grid. */ |
| 11 | MajorGridLineWidths(all;all;0.25) |
| 12 | GridLocation(xy;back) /* Default location. */ |
| 13 |
By using gridLocation = front the grid can be positioned in the foreground.
| | GRID_LOCATION_02 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(1.5 2.5 1.5 2 1.5 3) |
| 3 | |
| 4 | /* Set up styles. */ |
| 5 | FillStyle(1;#d9ed9f) |
| 6 | BorderStyle(1;poly;2.5;#82b071) |
| 7 | /* Set up axes. */ |
| 8 | |
| 9 | AxisMajorTicks(all;0) |
| 10 | /* Set up grid. */ |
| 11 | MajorGridLineWidths(all;all;0.25) |
| 12 | |
| 13 |
In addition, all grids can be suppressed simply by using gridLocation = none.
| | GRID_LOCATION_03 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(1.5 2.5 1.5 2 1.5 3) |
| 3 | |
| 4 | /* Set up styles. */ |
| 5 | FillStyle(1;#d9ed9f) |
| 6 | BorderStyle(1;poly;2.5;#82b071) |
| 7 | /* Set up axes. */ |
| 8 | |
| 9 | AxisMajorTicks(all;0) |
| 10 | /* Set up grid. */ |
| 11 | MajorGridLineWidths(all;all;0.25) |
| 12 | GridLocation(xy;none) /* Hide grids. */ |
| 13 |