Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Specifying Variables and a Viewing Mode in a Scatter Control

Scatter controls let you specify three categories of variables:

The Scatter control supports long variable names, and mixed-case variable names.

To specify the axes variables, use the XVariable attribute to specify the independent variable, and YVariable to specify the dependent variable. To specify a second independent variable, use the ZVariable attribute. The axes-variable specification must be coordinated with the visual dimensions, which you set with the control's viewMode attribute. The viewing mode affects which actions are available for interacting with the control.

The following table defines the viewing modes and shows how to coordinate their use with the analysis variables:

viewMode Description
2D creates a two-dimensional view that has height and width but no depth. Requires one independent variable (X) and one dependent variable (Y). This mode is not available for surface plots.
3D creates a view that has height and width and uses shading to create the illusion of depth. Requires only one independent variable (X), but allows a second independent variable (Z). Also requires one dependent variable (Y). This mode is not available for surface plots.
3DPerspective creates a true 3D view that has depth. Requires two independent variables (X and Z) and one dependent variable (Y). If you set the viewMode to 3DPerspective with only one independent variable, the control uses a viewMode of 3D.

For a Scatter control named scatter1, the following code sets X and Y variables for a two-dimensional analysis:

scatter1.viewMode = '2d';
scatter1.xvariable = 'country';
scatter1.yvariable = 'sales';


Chapter Contents

Previous

Next

Top of Page

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