Axis Appearance Features Controlled by the Current Style

The appearance of graphs produced with GTL is always affected by the ODS style that is in effect for the ODS destination. From an axis perspective, the default appearance of the axis line, ticks, tick values, axis label, and grid lines are controlled by predefined style elements.
Style Element
Style Attributes
Values
Controls
GraphAxisLines
TickDisplay
"ACROSS" "INSIDE" "OUTSIDE"
Tick mark location
LineStyle
Integer: 1 to 49
Axis line pattern
LineThickness
Dimension
Axis line and tick thickness
ContrastColor
Color
Axis line and tick color
GraphGridlines
DisplayOpts
"AUTO" "ON" "OFF"
When to display grid lines
LineStyle
Integer: 1 to 49
Grid line pattern
LineThickness
Dimension
Grid line thickness
ContrastColor
Color
Grid line color
GraphLabelText
Color
Color
Axis label text color
Font
font-specification1
Axis label font
GraphValueText
Color
Color
Axis tick value text color
Font
font-specification1
Axis tick value font
1A style font-specification includes attributes for FONTFAMILY, FONTWEIGHT, FONTSTYLE, and FONTSIZE.
The following GTL axis options also control the appearance of axis features. When you include these options, the corresponding information from the current style is overridden.
Option
Overrides ...
GRIDDISPLAY=
DisplayOpts attribute of GraphGridLines
GRIDATTRS=
GraphGridLines
LABELATTRS=
GraphLabelText
TICKVALUEATTRS=
GraphValueText
TICKSTYLE=
TickDisplay attribute of GraphAxisLines
Example: Assure that the axis label text appears in bold.
layout overlay / xaxisopts=(labelattrs=(weight=bold))
                 yaxisopts=(labelattrs=(weight=bold));
Example: Display grid lines.
layout overlay / xaxisopts=(griddisplay=on)
                 yaxisopts=(griddisplay=on);
Example: Use a dot pattern for grid lines.
layout overlay / xaxisopts=(griddisplay=on gridattrs=(pattern=dot))
                 yaxisopts=(griddisplay=on gridattrs=(pattern=dot));
Example: Make ticks cross the axes lines.
layout overlay / xaxisopts=(tickstyle=across)
                 yaxisopts=(tickstyle=across);
For all of the preceding examples, you would add similar coding to the X2AXISOPTS= and Y2AXISOPTS= options if the X2 or Y2 axes are used as independent scales. For complete documentation on the axis options that are available, see the SAS Graph Template Language: Reference.