Hi, I'm using sgpanel to create the graph attached. I wonder how do I put in specific colors grouped bars. Below is the code I am using: data tt; infile datalines dlm="|" dsd ; input _name_ : $32. Nome_Grup : $CHAR56. Mensal : COMMAX16.2 COL1 : COMMAX16.2 ; datalines; Anual 07.2012 a 06.2013|TESTE1|0,48|5,77 Anual 07.2013 a 06.2014|TESTE1|0,38|4,59 Anual 07.2013 a 06.2014|TESTE2|0,12|1,47 Anual 07.2012 a 06.2013|TESTE2|0,10|1,17 Anual 07.2012 a 06.2013|TESTE3|0,48|5,72 Anual 07.2013 a 06.2014|TESTE3|0,37|4,38 Anual 07.2013 a 06.2014|TESTE4|2,00|23,99 Anual 07.2012 a 06.2013|TESTE4|3,09|37,09 ; run; ods graphics / reset border width=25cm height=10cm; title "Frequência"; proc sgpanel data=tt; panelby Nome_Grup / layout=columnlattice onepanel colheaderpos=bottom columns=10 noborder novarname ; vbar _name_ / response=col1 datalabel group=_name_ barwidth=1 nostatlabel name="Anual"; vbar _name_ / response=Mensal datalabel group=_name_ barwidth=1 transparency=1 ; keylegend "Anual"/ noborder position=top; rowaxis grid display=(nolabel) ; colaxis display=none; run;
... View more