Produce the horizontal bar chart. The HBAR
statement produces a two-dimensional bar chart. SUMVAR= calculates the sum
of SALES for each value of the chart variable SITE. The default statistic
for SUMVAR= is SUM. The summary variable SALES is assigned a dollar format.
proc gchart data=reflib.totals;
format sales dollar8.;
hbar site / sumvar=sales;
run;