Create the pie chart. OTHER= collects all the midpoints with statistic values less than or equal to 5 percent of the total into one slice. OTHERLABEL= specifies the label for the "other" slice. DESCENDING arranges the slices in descending order of the statistic value. LEGEND= displays the customized legend created in the LEGEND statement and suppresses the slice labels. VALUE= places the chart statistics inside the slices. CTEXT= specifies white for the statistic text. Because CTEXT= also affects the color of the legend text, the LEGEND statement specifies black text so that the values can be seen. Because the PATTERN statement is used, the default slice outline matches the fill color; COUTLINE= changes the outline color to black.
proc gchart data=reflib.enprod(where=(year=1985));
   pie engytype / sumvar=produced
                  other=5
                  otherlabel='Renewable'
                  descending
                  legend=legend1
                  value=inside
                  ctext=white
                  coutline=black
                  noheading;
run;
quit;