By default, the attributes
of various elements of the graph are derived from specific style elements
(or from device entry parameters if the NOGSTYLE system option is
in effect), unless explicitly overridden with procedure or global
statement options. For example, you can use the CTITLE= and CTEXT=
options in the GOPTIONS global statement to change the color of the
text in all of your graphs. You can use the SYMBOL statement to specify
colors for markers. The settings remain in effect until you change
them or end your SAS session.
For information about
GOPTIONS, see GOPTIONS Statement and
and Specifying Colors in a GOPTIONS Statement. See the examples in SAS/GRAPH Statements.
Instead of specifying
global options, which affect all of your
SAS/GRAPH output, you can
specify options on specific action statements that affect only the
output produced by that statement. Values that you specify on procedure
action statements override default style attributes (or device entry
parameters) and global options.
For an example, see Modifying the Appearance of Radar Charts.
The documentation for
each option that overrides a style element includes the name of the
style element and attribute.
For example, the documentation
for the CAXIS=grid-color GCHART procedure includes the following style reference
information:
- CAXIS=
-
Style reference:Color attribute of the GraphAxisLines element
If you want to change
the color of the same graphical elements that are affected by the
CAXIS= option by modifying a style, then you need to modify the Color
attribute of the GraphAxisLines element.
See Modifying a Style for more information.
Attributes that are
used repeatedly might be best specified in an ODS style. However,
if you have created a customized style, be aware that you might need
to make this style available to anyone that you send your SAS code
to.
Attributes that are
used only once or occasionally are best specified using
SAS/GRAPH
statements.