Chapter Contents

Previous

Next
COLOR Variable

COLOR Variable



Specifies the color used by the function.

Type: character
Length: 8
Default:
  1. first color in colors list of the COLORS= graphics option

  2. first color in device's default colors list.


Syntax
Functions

Syntax

COLOR='color';

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


Functions

The COLOR variable is function dependent.

If function is... then the variable specifies...
BAR the color that outlines and, optionally, fills the bar if a pattern is specified in the STYLE variable. If no pattern is specified, color determines only the color of the outline.
DRAW or DRAW2TXT the color that draws the line.
FRAME the color for the frame. If a fill pattern is specified, color also determines the color of the interior or the area bounded by the frame.
LABEL the color that draws the text.
PIE the color for the pie slice if a pattern is specified with the STYLE variable. If no pattern is specified, color determines the color of the outline of the pie slice.
POINT the color for 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.
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.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.