Produce the pie chart. The WHERE data set
option subsets the data for 1995. OTHER=0 specifies that all midpoints, no
matter how small, display a slice. MIDPOINTS= assigns the order of the slices.
Each slice displays the percent contribution to total production and the slice
name. VALUE=NONE suppresses the chart statistic. Both SLICE= and PERCENT=
are assigned the ARROW labeling method to point to the slice, but only one
arrow line is displayed. CFILL= specifies a color for the fill used by all
slices.
proc gchart data=reflib.enprod (where=(year=1995));
pie engytype / sumvar=produced
other=0
midpoints='Coal' 'Geotherm' 'Petro'
'Biofuels' 'Gas' 'Nuclear'
'Hydro'
value=none
percent=arrow
slice=arrow
cfill=cyan
noheading;
run;
quit;