Chapter Contents

Previous

Next
The CHART Procedure

Example 6: Producing Block Charts for BY Groups


Procedure features:
BLOCK statement options:
GROUP=
NOHEADER=
SUMVAR=
SYMBOL=
BY statement
Other features:
PROC SORT
SAS System options:
NOBYLINE
OVP
TITLE statement:
#BYVAL specification
Data set: PIESALES

This example






Program

options nodate pageno=1 linesize=80 pagesize=60;


 Note about code
proc sort data=piesales out=sorted_piesales;
   by year;
run;
 Note about code
options nobyline ovp;

 Note about code
proc chart data=sorted_piesales;
   by year;
 Note about code
   block bakery / group=flavor


 Note about code
                  sumvar=pies_sold

 Note about code
                  noheader
 Note about code
                  symbol='OX';
   title  'Pie Sales for Each Bakery and Flavor';
 Note about code
   title2 '#byval(year)';
run;
 Note about code
options byline;


Output

[IMAGE]

[IMAGE]


Chapter Contents

Previous

Next

Top of Page

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