Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Specifying Data for a Pie Control

To specify the data for a Pie control, use the dataSet or dataSetID attributes, or reference the SCL list that contains the data. Use the Pie control's dataSource attribute to indicate the source of the data.

Attribute Specification
DataSet Specify the data set in the form libref.filename. You can use this attribute in the Property sheet, or in SCL code.
DataSetID Specify the data set ID, which is the identifier returned by the open() method. The dataSetID attribute is useful when you want to create a subset of the data before using it. This attribute is only available in SCL code.
dataList Specify the SCL list that contains the data values. This attribute is only available in SCL code.

For a Pie control named pie1, the following code sets the dataSet attribute to Sashelp.Revhub:

pie1.dataSource='dataset';
pie1.dataset = 'sashelp.revhub';

In the following example, the data set is first screened for those revenues that are over $500,000:

dsid=open('sashelp.revhub');
    rc=where(dsid,'revenue gt 500000');
pie1.dataSource='datasetid';
pie1.dataSetID=dsid;


Chapter Contents

Previous

Next

Top of Page

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