CBOX Variable

Draws a solid box behind the text or symbol and fills the box with the specified color.
Type: character
Length: 8 for color codes and up to 64 for color names
See: CBORDER

Syntax

CBOX='color' | 'CBACK';

Variable Values

color
specifies the color that fills the box. Color is any SAS/GRAPH color name. See Using Colors in SAS/GRAPH Programs for more information about specifying colors.
Specifying a null value for color (CBOX=' ') cancels the CBOX variable.
CBACK
fills the box with the same color as the background color of the graph. The background color is either (1) the color specified by the CBACK= graphics option or (2) the default background color for the device.

Details

Using the CBOX Variable

Once you have specified CBOX, it remains in effect for all subsequent observations that use the LABEL or SYMBOL function.
The color of the text or symbol within the box is controlled by the COLOR variable.
By default, the solid box has no border. To add a colored border to the box, use the CBORDER variable in conjunction with CBOX.

Functions

You can use the CBOX variable with these functions:
LABEL
SYMBOL