COLOR Variable

Specifies the color used by the function.
Type: character
Length: 8 for color codes and up to 64 for color names
Default: 1. COLORS= graphics option, if specified; 2. first color in device's default color list

Syntax

COLOR='color';

Variable Values

color
specifies any SAS/GRAPH color name. See Using Colors in SAS/GRAPH Programs for more information about specifying colors.

Details

The COLOR variable is function dependent.
Function
What the COLOR variable specifies
BAR
The color that outlines and, as an option,, fill the bar if a pattern is specified in the STYLE (patterns) variable. If no pattern is specified, the color value is applied only to the outline of the bar.
ARROW
The color of the arrow.
DRAW, DRAW2TXT
The color of the line.
FRAME
The color of the outline of the frame. If a fill pattern is specified, color also determines the color of the inside of the frame.
LABEL
The color of the text.
PIE
The color for the pie slice if a pattern is specified with the STYLE (patterns) variable. If no pattern is specified, color determines the color of the outline of the pie slice.
POINT
The color of the point.
POLY
The fill color for the interior of the polygon if a pattern is specified with the STYLE variable. If the STYLE variable is missing or EMPTY, color is ignored. Use the POLYCONT function to specify the outline color.
POLYCONT
The color that outlines the polygon when used with the first POLYCONT function. COLOR is ignored for subsequent POLYCONT functions in the POLYCONT sequence.
SYMBOL
The color that draws the symbol.