Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## draw-major-grid-lines

Arguments: chart-axis

Returns the value of the draw-major-grid-lines property of a `chart-axis`. The value may be set at creation time by passing the `:draw-major-grid-lines` initarg, or any time later by calling (setf draw-major-grid-lines).

A value indicating whether (and how) grid lines are drawn for the major tic positions of a `chart-axis` in a `chart-widget`.

When drawn, a grid line extends across the body of the chart, perpendicular to the axis with which it is associated.

Here are the possible values:

- `nil` - Major grid lines are not drawn. This is the default value.
- `t` - Major grid lines are drawn, and are drawn at the major tic positions.
- `:after` - Each major grid line is drawn midway between its major tic position and the next major tic position. This may be especially useful for delimiting groups of non-stacked bars by drawing lines between the groups, for example, rather than drawing a line through the middle of each group of bars. This choice is probably not aesthetic when draw-minor-grid-lines is true.
- `:before` - Like `:after`, except that each grid line is drawn between its official position and that of the previous grid line.
- `:between` - Like `:after` and `:before` except that no grid line is drawn before the first major tic position or after the last one.

See also major-grid-line-color, major-grid-line-dashing, major-grid-line-width, and draw-minor-grid-lines.

See `chart-widget` and also cg-chart-widget.htm.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version