Procedure features: |
VBAR Statement
|
Data set: |
WORK.TOTALS
|
Sample library member: |
GABSUMVR
|
Area Bar Chart
![[Area Bar Chart]](images/gabsumvr.gif)
This area bar chart
reveals three geographic sites (Lima,
NY, Rome) along the horizontal axis. The width of each bar represents the
sum of the salespersons assigned to each site. The height of each bar represents
the sum of the sales for each site. The chart shows that NY had the greatest
sales, as well as the greatest number of sales persons.
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions reset=all dev=activex; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
data totals;
input Site $ Quarter Sales Salespersons;
format Sales dollar12.2;
datalines;
Lima 1 4043.97 4
NY 1 8225.26 12
Rome 1 3543.97 6
Lima 2 3723.44 5
NY 2 8595.07 18
Rome 2 5558.29 10
Lima 3 4437.96 8
NY 3 9847.91 24
Rome 3 6789.85 14
Lima 4 6065.57 10
NY 4 11388.51 26
Rome 4 8509.08 16
; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods listing close; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods html; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gareabar data=totals;
vbar site*salespersons /
sumvar=sales;
run;
quit; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods html close; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ods listing; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.