In reply to Hamid.

Hi Rao,

If you want to have the last 5 bars a different color from the first 20 bars, you can define a variable to group the bars. The color of the bars is the same for all bars within a group. The new variable would be used as the GROUP= variable on your VBAR statement and the STYLEATTRS statement with the DATACOLORS= option can be used to specify the colors for each of these groups.
For example:
data sample;
do midpt=1 to 25;
if midpt>=21 then grp=2;
else grp=1;
output;
end;
run;
proc sgplot data=sample;
styleattrs datacolors=(blue green);
vbar midpt / group=grp nooutline;
run;

If this doesn't answer the question, send email to support@sas.com and we will be glad to help you out with the specifics for you graph.