Procedure features: |
|
Other features: |
FORMAT statement |
GOPTIONS statement option:
|
|
Sample library
member: |
GCHBKSUM
|
![[GCHBKSUM-Specifying Sum Statistic in a Block Chart]](images/gchbksum.gif)
This
example produces a block chart of total sales for
three sites by charting the values of the character variable SITE and calculating
the sum of the variable SALES for each site. It prints formatted values of
the sales statistics below the blocks.
All the blocks use the same pattern because by default
patterns change for subgroups and in this example subgroups are not specified.
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions reset=all border; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
data totals;
length dept $ 7 site $ 8;
input dept site quarter sales;
datalines;
Parts Sydney 1 7043.97
Parts Atlanta 1 8225.26
Parts Paris 1 5543.97
Tools Sydney 4 1775.74
Tools Atlanta 4 3424.19
Tools Paris 4 6914.25
; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
title "Total Sales";
footnote j=r "GCHBKSUM "; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gchart data=totals;
format sales dollar8.;
block site / sumvar=sales;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.