Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Creating a Pie Control

To create a Pie control, open a frame and select a Pie Control from the Components window. This instantiates the control for you. You can name the control by opening the Property sheet and assigning a name on the name attribute.

You can then perform the following tasks:


Before a graph is drawn, you must specify the data set and at least two variables (the sliceVariable and the sizeVariable). You can set other attributes before this is done, but no graph is drawn until the data set and variable are specified.

If you enter the data set and variables through the Property sheet in build mode, the graph is displayed as soon as you enter the minimum information. If you use SCL to enter the information, the graph is displayed as soon as the minimum information is set and a Return statement is encountered. If you specify a data set or variable that does not exist, a warning is written to the SAS log, and no graph is drawn.

If you use the Property sheet, as soon as you enter the minimum information, the data minimum and data maximum attributes are filled in with the minimum and maximum values from the dataset for the slice, row, and column variables (for example, the sliceDataMin and sliceDataMax attributes are set). Also, if any of the variables were character data then the corresponding variable type values are set to Categorical and are no longer editable until you change the variable. This is because character data cannot be treated numerically.

As you change attributes in the Property sheet, variable types do not change automatically every time. For example, if you assign a character variable to sliceVariable, the variable type will change to Categorical. If you then assign a numerical variable to sliceVariable, the variable type will still be categorical because it is valid to treat numerical data categorically.


Chapter Contents

Previous

Next

Top of Page

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