Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
To specify the data for a Chart control, use the dataSet or dataSetID attributes, or reference the SCL list that contains the data. Use the Chart control's dataSource attribute to indicate the source of the data.
Attibute | 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 information on using subsets of data, see Using Subsets of Data in a Chart Control.
For example, the following code sets the dataSet attribute to Sashelp.Revhub:
chart1.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'); chart1.dataSource='datasetid'; chart1.dataSetID=dsid;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.