SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Bar and Pie Charts
Specifying Statistics


Additional TYPE= Examples

The GCHART procedure below uses the TYPE= option to specify the statistic PERCENT. The bars now display the percent of Company. Notice that the label on the vertical axis is now PERCENT.

     proc gchart data=clinic.insure;
        vbar company / type=percent;
     run;

Vertical bar chart of percent.

This GCHART procedure specifies TYPE=CPERCENT to display the cumulative percent of Company. The label on the vertical axis is now CUMULATIVE PERCENT.
     proc gchart data=clinic.insure;
        vbar company / type=cpercent;
     run;

Vertical bar chart of cumulative percent.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement