Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Specifying Variables and a Viewing Mode for a Chart Control

A Chart control can analyze from two to six variables. The control supports long variable names, and mixed-case variable names.

You can view the chart in two or three visual dimensions, called the viewing mode. The number of variables you specify must be coordinated with the visual dimensions, which you set with the control's viewMode attribute. The viewing mode also affects which actions are available for interacting with the control.

The following table shows how to coordinate the number of variables with the viewing dimensions. The table after it describes the viewing modes.

To analyze... In view mode... Use variable attributes...
Two variables 2D (view that has height and width but no depth) XVariable and YVariable
Three variables 3D (view that has height and width and uses shading to create the illusion of depth) XVariable, YVariable, and (ZVariable or colorVariable)
Four variables up to six variables 3DPerspective (view that has height, width, and depth) XVariable, Yvariable, ZVariable, and colorVariable (plus color2Vriable for five varibles, and color3Variable for six variables)

For example, for a Chart control named chart1, the following code sets the viewMode attribute to 2D, and it sets X and Y variables for the analysis:

chart1.viewMode = '2D';
chart1.xvariable = 'age';
chart1.yvariable = 'weight';


Chapter Contents

Previous

Next

Top of Page

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