FOCUS AREAS

Graphics

Pie Chart
Pie Chart
SAS/GRAPH: PROC GCHART

/*** To run PROC GCHART, you must have a SAS/GRAPH license ***/

/* Open the LISTING destination and assign the LISTING style to the graph */
ods listing style=listing;

goptions reset=all device=png hsize=5in vsize=2.8in htext=8pt;

title h=12pt 'Revenues Share by Product';

legend1 label=none
        shape=bar(2,1);

proc gchart data=sashelp.prdsal2;
  pie product / sumvar=actual
                value=arrow
                percent=arrow
                noheading
                percent=inside plabel=(height=3pt)
                slice=inside value=none
                name='PieChart';
  format actual dollar20.2;
run;
quit;