Hi:
I believe that you can change the color of the bar, but not the pattern (at this time).
To add the number/statistic at the top of the bar, use the datalabel option. To control the colors for a single group, see example #1 (basically, you tell it that the X axis variable is its own group. To control the colors for a grouped bar chart, use a style template, such as that shown in #2.
For more information about style elements, refer to:
http://support.sas.com/documentation/cdl/en/grstatproc/61948/HTML/default/a003121053.htm
http://support.sas.com/documentation/cdl/en/grstatproc/61948/HTML/default/a003136924.htm
cynthia
[pre]
ods listing style=listing;
proc sort data=sashelp.class out=class;
by age sex;
run;
** 1 -- different color each discrete age, by using;
** age as a group;
proc sgplot data=class;
title '1) different color each age';
vbar age / datalabel stat=freq group=age;
xaxis label = 'Age'
values=(11 to 16 by 1);
yaxis label = 'Students' values=( 0 to 10 by 1);
format age 2.0;
run;
** 2 -- control colors for groups using style template;
proc template;
define style styles.mystyle;
parent = styles.listing;
class GraphColors /
'gdata1' = purple
'gdata2' = pink;
end;
run;
ods listing style=mystyle;
proc sgplot data=class;
title '2) different color for each group';
vbar age / datalabel group=sex;
xaxis label = 'Age' fitpolicy=stagger
values=(11 to 16 by 1);
yaxis label = 'Students' values=( 0 to 10 by 1);
run;
ods listing style=listing;
[/pre]