Interaction
The XPIXELS= option in the SAS/GRAPH GOPTIONS statement
overrides the WIDTH= attribute.
Tips
A column of cells has the width of the widest cell in the column.
Use WIDTH=100% to make the table or graph as wide as the window
that it is open in.
Style Attribute Values
color
is a string that identifies a color. A color is defined in the following ways:
• most of the color names that are supported by SAS/GRAPH. These names
include the following:
• a predefined SAS color (for example, blue or VIYG)
• a red/green/blue (RGB) value (for example, CX0023FF)
• a hue/light/saturation (HLS) value (for example, H14E162D)
• a gray-scale value (for example, GRAYBB).
• a red/green/blue transparency (RGBA) value (for example, a98FB9880)
• a cyan/magenta/yellow/black (CMYK) value (for example, FFFFFF00)
Note: RGBA color mode is not supported by Java devices. RGBA color mode is
supported by ActiveX devices when the output is used in Microsoft
applications.
• an RGB value with a leading number sign (#) rather than CX (for example,
#0023FF).
• one of the colors that exist in the SAS session when the style is used:
• DMSBLUE
• DMSRED
• DMSPINK
• DMSGREEN
• DMSCYAN
• DMSYELLOW
• DMSWHITE
• DMSORANGE
• DMSBLACK
• DMSMAGENTA
• DMSGRAY
• DMSBROWN
• SYSBACK
• SYSSECB
Style Attribute Values 877
• SYSFORE
Note: Use these colors only when running SAS in the windowing environment.
• an English description of an HLS. Such descriptions use a combination of words
to describe the lightness, the saturation, and the hue (in that order). Use the Color
Naming System to form a color in the following ways:
• combining a chromatic hue with a lightness, a saturation, or both
• combining the achromatic hue gray with a lightness
• combining the achromatic hue black or white without qualifiers
Use the words in the following table:
Table 11.6 Hue/Light/Saturation (HLS) Values
Lightness Saturation Chromatic Hue Achromatic Hue
Blue
Black
*
Very dark Grayish Purple
Dark Moderate Red
Medium Strong Orange | brown
Gray
**
Light Vivid Yellow
Very light Green
White
*
*
Black and white cannot be combined with a lightness value or a saturation value.
**
Gray cannot be combined with a saturation value.
Combine these words to form a wide variety of colors. Here are examples:
• light vivid green
• dark vivid orange
• light yellow
Note: The Output Delivery System first tries to match a color with a
SAS/GRAPH color. Thus, although brown and orange are interchangeable in
the table, if you use them as unmodified hues, then they are different. The
reason for this is that ODS interprets them as SAS colors, which are mapped
to different colors.
You can also specify hues that are intermediate between two neighboring colors.
To do so, combine one of these adjectives with one of its neighboring colors:
• reddish
• orangish
• brownish
• yellowish
• greenish
878 Chapter 11 • Style Attributes
• bluish
• purplish
• bluish purple
• reddish orange
• yellowish green
Tips
For a list of some valid colors, see Link to Valid Colors to use
with cascading style sheets
To see how color names map to hexadecimal values, submit the following
REGISTRY procedure code:
proc registry list startat="COLORNAMES";
run;
See
RBG Color Codes, HLS Color Codes, and Gray-Scale Color codes in
SAS/GRAPH: Reference for information about SAS/GRAPH colors.
dimension
is a whole number, a percentage, or a nonnegative number followed by one of these
units of measure:
Table 11.7 Units of Measure for Dimension
cm Centimeters
em Standard typesetting measurement unit for width
ex Standard typesetting measurement unit for height
in Inches
mm Millimeters
pt A printer's point
Default
For the PRINTER destination, units of 1/150 of an inch
font-definition
is the name of a font, the font size, and font keywords. A font definition has this
general format:
("font-face-1 <… , font-face-n>", font-size, keyword-list)
"font-face"
specifies the name of the font.
ODS styles can now use new TrueType fonts. All Universal Printers and many
SAS/GRAPH devices use the FreeType library to render TrueType fonts for
output in all of the operating environments that SAS software supports. In
addition, by default, many SAS/GRAPH device drivers and all Universal Printers
generate output using ODS styles, and these ODS styles use TrueType fonts. In
addition to SAS Monospace and SAS Monospace Bold, 21 new TrueType fonts
are made available when you install SAS:
Style Attribute Values 879
Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.