Procedure features: |
BLOCK statement options:
|
GROUP= |
|
NOHEADER= |
|
SUMVAR= |
|
SYMBOL= | |
BY
statement |
|
Other features: |
PROC SORT |
SAS system options:
|
TITLE statement:
|
|
Data set: |
PIESALES
|
This example
-
sorts the data
set
-
produces a block chart for each BY group
-
organizes the blocks into a three-dimensional chart
-
prints BY group-specific
titles.
 |
options nodate pageno=1 linesize=80 pagesize=60; |
 |
proc sort data=piesales out=sorted_piesales;
by year;
run; |
 |
options nobyline ovp; |
 |
proc chart data=sorted_piesales;
by year; |
 |
block bakery / group=flavor |
 |
sumvar=pies_sold |
 |
noheader |
 |
symbol='OX'; |
 |
title 'Pie Sales for Each Bakery and Flavor';
title2 '#byval(year)';
run; |
 |
options byline; |
![[Block Chart Output, Page 1]](images/chart-out1.gif)
![[Block Chart Output, Page 2]](images/chart-out2.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.