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