data oranges;
set sasuser.oranges;
nday=input(put(day,$1.),2.);
label nday='DAY OF WEEK';
totsales=sales1+sales2;
run;

proc format;
value dayfmt 1='Mon'
               2='Tue'
               3='Wed'
               4='Thu'
               5='Fri'
               6='Sat';
run;

goptions reset=all chartype=11 rotate=landscape target=lj4sips;

pattern1 v=solid c=black;
pattern2 v=solid c=grayaa;
pattern3 v=solid c=graycc;
pattern4 v=solid c=gray22;
pattern5 v=solid c=grayee;
pattern6 v=solid c=gray66;

proc gchart data=oranges;
title1 font=hwpsl011 height=3 pct 'This graph totals the percentage';
title2 font=hwpsl011 height=3 pct 'across all bars to 100%.';
footnote1 font=hwpsl011 height=1.5 pct justify=right 'OUTPUT 1';
vbar store / subgroup=nday freq=totsales type=pct pct width=8;
format nday dayfmt.;
run;

title1 font=hwpsl011 height=3 pct 'This graph totals the percentage';
title2 font=hwpsl011 height=3 pct 'for each bar to 100%.';
footnote1 font=hwpsl011 height=1.5 pct justify=right 'OUTPUT 2';
axis1 value=none label=none;
vbar store / subgroup=nday group=store freq=totsales type=pct
             g100 nozero maxis=axis1 width=8;
format nday dayfmt.;
run;
quit;