%let gpath='.'; ods html close; %let dpi=200; ods listing gpath=&gpath image_dpi=&dpi; %let region=Canada; /*--VBAR and AxisTable--*/ ods graphics / reset width=5in height=3in imagename='Shoes_1'; title "Total Sales for ®ion by Subsidiary"; proc sgplot data=sashelp.shoes(where=(region="®ion")) noborder; vbar subsidiary /response=sales baselineattrs=(thickness=0) filltype=gradient fillattrs=(color=olive); xaxistable sales / valueattrs=(size=7); xaxis display=(nolabel noline); yaxis display=(noline) grid; run; /*--VBAR and AxisTable with CLASS option--*/ ods graphics / reset width=5in height=3in imagename='Shoes_2'; title "Total Sales for ®ion by Subsidiary"; proc sgplot data=sashelp.shoes(where=(region="®ion")) noborder; vbar subsidiary /response=sales baselineattrs=(thickness=0) filltype=gradient fillattrs=(color=darkgreen); xaxistable sales / class=product valueattrs=(size=7); xaxis display=(nolabel noline); yaxis display=(noline) grid; run; /*--VBARBASIC and AxisTable with CLASS option--*/ ods graphics / reset width=5in height=3.5in imagename='Shoes_3'; title "Total Sales for ®ion by Subsidiary"; proc sgplot data=sashelp.shoes(where=(region="®ion")) noborder nocycleattrs noautolegend; vbarbasic subsidiary /response=sales baselineattrs=(thickness=0) filltype=gradient fillattrs=(color=brown); xaxistable sales / x=subsidiary class=product valueattrs=(size=7); xaxis display=(nolabel noline); yaxis display=(noline) grid; run; /*--Opaque Gradient VBARBASIC and AxisTable with CLASS option--*/ ods graphics / reset width=5in height=3.5in imagename='Shoes_4'; title "Total Sales for ®ion by Subsidiary"; proc sgplot data=sashelp.shoes(where=(region="®ion")) noborder nocycleattrs noautolegend; vbarbasic subsidiary /response=sales baselineattrs=(thickness=0) nooutline fillattrs=(color=white); vbarbasic subsidiary /response=sales baselineattrs=(thickness=0) filltype=gradient fillattrs=(color=brown); xaxistable sales / x=subsidiary class=product valueattrs=(size=7); xaxis display=(nolabel noline); yaxis display=(noline) grid; run; /*--VBARBASIC overlays with Groups--*/ ods graphics / reset width=5in height=3.5in imagename='Product'; title "Actual Sales"; proc sgplot data=sashelp.prdsale noborder nocycleattrs; vbarbasic product / response=actual baselineattrs=(thickness=0) nooutline; vbarbasic product /response=actual group=quarter groupdisplay=cluster baselineattrs=(thickness=0) dataskin=matte; xaxis display=(nolabel noline); yaxis display=(noline) grid; run; /*proc print data=sashelp.shoes; run;*/