Hello, Can you please advise how to assign different colors for datalabels in sgplot hbar chart? With datalabelattrs =(color=) statement I can put just 1 color for all datalabels together, I need different color for each series (4 bars - "1","2","3" and "4" - I need to assign different color for each bar). THANK YOU!!! proc sgplot data=Americas noborder noopaque nowall pad=0 noautolegend; goption xpixels=400 ypixels=300; hbar ID / response=TotalCases stat=sum datalabel group=ID dataskin=matte nooutline nostatlabel datalabelattrs=(size=12) clusterwidth=0.9 barwidth=0.96; styleattrs datacolors=('#D4002C' '#009354' '#EF820F' '#6C206B'); xaxis display=none valueattrs=(color=black size=11pt) LABELATTRS=(color=black size=12pt); yaxis values=( "1" "2" "3" "4") display=(NOVALUES NOLINE) display=none display=(noticks) label=' ' ; run;
... View more