Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
The following table lists the attributes you can use to control color in a Histogram control. For information on controlling the color in titles and footnotes, see Displaying Titles and Footnotes in a Histogram Control. For information on using color as a response variable, see Using a Color Variable in a Histogram Control.
Attribute | Specifies |
---|---|
axisColor | Color for the axis, axis labels, tick marks, and legend. |
backgroundColor | Color outside of the histogram axes but within the control's border |
borderColor | Color for the border around the control |
borderTitleColor | Text color for the border's title |
chartBackgroundColor | Color within the histogram axes |
colorVariable | Bar colors in the histogram |
faceColorMode | Whether bar colors affect the entire bar or only the bar tops |
gridColor | Color of the histogram's grid lines |
highlightColor | Color a bar turns when it is selected |
missingColor | Color used for bars that have a color response value that is not defined in the Range entry |
For all the attributes except colorVariable, you can specify a SAS color name like red, green, or blue. Alternatively, you can set the color to match a color value that is set in the SAS environment. For example, you can set the color to match the color used for the SAS notes that print in the Log window.
To set colors in the SAS environment, use the SASCOLORS window, which you can open with the tools menu:
Tools | Options | Colors |
For a Histogram control named histogram1, the following code sets the backgroundColor attribute to blue:
histogram1.backgroundColor = 'blue';
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.