Previous Page | Next Page

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

 Note about code
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';
 Note about code
   title  'Pie Sales for Each Bakery and Flavor';
   title2 '#byval(year)';
run;
 Note about code
options byline;

Output: Listing

[Block Chart Output, Page 1]

[Block Chart Output, Page 2]

Previous Page | Next Page | Top of Page