Produce the vertical bar chart. SUBGROUP= creates a separate bar segment for each department. INSIDE= prints the subgroup percent statistic inside each bar segment. OUTSIDE= prints the sum statistic above each bar. WIDTH= makes the bars wide enough to display the statistics. SPACE= controls the space between the bars. MAXIS= assigns the AXIS1 statement to the midpoint axis. RAXIS= assigns the AXIS2 statement to the response axis. LEGEND= assigns the LEGEND1 statement to the subgroup legend. CFRAME= specifies the color for the 3D planes.
proc gchart data=reflib.totals;
   format quarter roman.;
   format sales dollar8.;
   vbar3d site / sumvar=sales
                 subgroup=dept
                 inside=subpct
                 outside=sum
                 width=9
                 space=4
                 maxis=axis1
                 raxis=axis2
                 cframe=gray
                 coutline=black
                 legend=legend1;
run;
quit;