%let name=pyramid_pie; filename odsout '.'; /* SAS Version of a pie chart Mike Zdeb sent me. */ proc format; value pietext 1 = "Sky" 2 = "Sunny side of pyramid" 3 = "Shady side of pyramid" ; run; data my_data; format slice_num pietext.; input slice_num degrees; datalines; 1 275 2 60 3 25 run; goptions device=png; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="Pyramid Pie Chart") style=htmlblue; goptions gunit=pct htitle=3.8 htext=3.5 ftitle="albany amt/bo" ftext="albany amt" ctext=gray33; pattern1 v=s c=cx416391; pattern2 v=s c=cxd2a353; pattern3 v=s c=cx583925; legend1 position=(right middle) across=1 label=none value=(justify=left) shape=bar(.25in,.25in) offset=(-2,0); title; proc gchart data=my_data; pie slice_num / type=percent sumvar=degrees angle=-46 /* start angle - number of degrees counter-clockwise, from the 3pm position */ noheading slice=none value=none legend=legend1 coutline=same des='' name="&name"; run; quit; ODS HTML CLOSE; ODS LISTING;