Hi. AS soon as I posted my answer, I realized ...ehh, that's not a solution. Well, here is something soooo tedious, but does what you want: (this is going back to good ol' style: annotate!) *--create an annotate dataset, that will force to color bins based on VERY specific values; data boxColor; length function style color $ 8 ; xsys="3"; ysys="3";when = "a"; set sashelp.class; %bar(32.7,7.89,42.5,88.2,red,1,solid); %move(32.7,7.9); %draw(32.7,88.2,black,1,.5); %move(32.7,88.2); %draw(42.5,88.2,black,1,.5); %move(42.5,7.9); %draw(42.5,88.2,blue,1,.5); %bar(42.5,7.9,61.5,48,red,1,solid); %move(42.5,7.9); %draw(42.5,48,black,1,.5); %move(42.5,48); %draw(61.5,48,black,1,.5); %bar(61.5,7.9,80.5,48,red,1,solid); %move(61.5,7.9); %draw(61.5,48,black,1,.5); %move(61.5,48); %draw(80.5,48,black,1,.5); %bar(80.5,7.9,98.5,18,red,1,solid); %move(80.5,7.9); %draw(80.5,18,black,1,.5); %move(80.5,18); %draw(98.5,18,black,1,.5); run; %annomac; ods graphics off; proc univariate data = sashelp.class anno = boxColor; var age;histogram age; run; Now let me know if you have questions. Hopefully will find a more elegant solution Anca.
... View more