%let gpath=C:\;
%let dpi=200;
ods html close;
ods listing style=HTMLBlue gpath="&gpath" image_dpi=&dpi;
/*========SAS 9.40M6=======*/
data bmi;
format bmi 4.1;
set sashelp.class;
BMI=weight*0.45 / (height/30.48)**2;
run;
proc print;run;
/*--PIE--*/
ods listing style=word;
ods graphics / reset width=4in height=2.5in imagename='Pie_Callout_2';
title 'Vehicle Statistics';
proc sgpie data=sashelp.cars;
pie type / startangle=90 direction=clockwise datalabeldisplay=(category response)
sliceorder=respdesc dataskin=pressed;
run;
/*--PIE Callout--*/
ods listing style=word;
ods graphics / reset width=4in height=2.5in imagename='Pie_Callout_1';
title 'Student BMI';
proc sgpie data=bmi;
pie name / response=bmi datalabeldisplay=all datalabelloc=callout
sliceorder=respdesc datalabelattrs=(size=7 weight=bold);
run;
proc format;
value $ring
'Sedan'='Sedan'
other= 'Sedan';
run;
/*--RING--*/
ods listing style=word;
ods graphics / reset noborder width=4in height=2.5in imagename='Ring_Gloss';
title;
proc sgpie data=sashelp.cars noautolegend ;
format type $ring.;
styleattrs datacolors=(maroon);
donut type / holevalue ringsize=0.1 datalabeldisplay=none dataskin=gloss;
run;
/*--RING--*/
ods listing style=word;
ods graphics / reset width=4in height=2.5in imagename='Ring_Gloss_1';
title 'Defect Count';;
proc sgpie data=sashelp.cars noautolegend;
format type $ring.;
donut type / holevalue ringsize=0.1 datalabeldisplay=none dataskin=pressed;
run;