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 |
| Note: | The size of the box that is drawn behind some symbols might change when UTF-8 encoding is used in the SAS session. |
| See: | CBORDER |
Table of Contents
Syntax
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 the color specified by the CBACK= graphics option or the color specified by backgroundcolor in style element GraphBackground for the current ODS style.
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 |