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-labels

Arguments: chart-axis

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

A value indicating whether (and how) label strings are drawn for the major tic positions of a `chart-axis` in a `chart-widget`. Here are the possible values:

- `nil` - No labels are drawn for major tic positions.
- `t` - Labels are drawn for major tic positions, and are drawn directly outward from each tic position. This is the default value.
- `:after` - Each major tic label is drawn midway between its major tic position and the next major tic position. This can be useful if the label actually refers to the span between the two tics. For example, if there is a major tic for each year and a minor tic for each month, then printing the year in the `:after` position for the major tic for the beginning of the year will print the year in the middle of the minor tics for the months of that year.
- `:after-nestled` - This is like `:after`, except that it will print the string closer to the axis if the minor-tic-length is less than the major-tic-length. It assumes that the label will fit between the major tic marks and therefore need only avoid overlapping the minor tic marks.
- `:before` - This is like `:after`, except drawing the label between its tic position and the previous major tic position.
- `:before-nestled` - This like like `:before` in the way that `:after-nestled` is like `:after`.

See also on-print-major-label, draw-major-tics, major-label-color, major-label-font, major-label-frequency, major-label-frequency-offset, major-label-min-spacing, major-label-wrapping, overlap-major-and-minor-labels, and draw-minor-labels.

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