Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Using Color in a Pie Control

The following table lists the attributes you can use to control color in a Pie control. For information on controlling the color in titles and footnotes, see Displaying Titles and Footnotes in a Pie Control. For more information on using color as a response variable, see Using a Color Variable in a Pie Control.

Attribute Specifies
axisColor Color for the axis, axis labels, tick mark, and legend
backgroundColor Color outside of the chart axes but within the control's borders
borderColor Color for the border around the control
borderTitleColor Text color for the border's title
colorVariable Slice colors
gridColor Color of the chart's grid lines
highlightColor Color a pie slice turns when it is selected
missingColor Color used for slices that have a color response value that is not defined in the Range entry
sideColor Color used for the edges of a three-dimensional pie

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
[arrow]
Options
[arrow]
Colors
For a Pie control named pie1, the following code sets the backgroundColor attribute to blue:

pie1.backgroundColor = 'blue';


Chapter Contents

Previous

Next

Top of Page

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