Hi
Not exactly the graph your are looking for, but it is a start, and it has all the information you are looking for. I have used Proc SGPANEL instead of Proc GCHART.
data have;
infile cards dlm=",";
input
Year
Ranking
Group_Y_Name $
cnt_gy_name
;
cards;
2007,1,GY1,2
2007,2,GY1,1
2007,1,GY2,2
2007,2,GY2,2
2007,1,GY3,1
2007,2,GY3,1
2007,3,GY3,1
2008,1,GY1,1
2008,2,GY1,1
2008,3,GY1,1
2008,1,GY2,1
2008,2,GY2,2
2008,1,GY3,1
2008,3,GY3,1
2009,2,GY1,3
2009,3,GY1,1
2009,1,GY2,4
2009,1,GY3,1
2009,2,GY3,1
2009,3,GY3,1
2010,1,GY1,2
2010,2,GY1,2
2010,1,GY2,4
2010,2,GY2,1
2010,1,GY3,1
2010,2,GY3,3
;
proc sgpanel data=have pctlevel=group;
styleattrs
datacolors=(cxfddcbb cxaddfe6 cxf5f8c9)
datacontrastcolors=(cxfddcbb cxaddfe6 cxf5f8c9)
;
panelby Group_Y_Name /
layout=columnlattice
colheaderpos=bottom
novarname
noborder
;
vbar year /
response=cnt_gy_name
group=Ranking stat=percent
seglabel seglabelformat=percent9.
;
colaxistable cnt_gy_name;
keylegend / noborder TITLE=" ";
run;
Bruno
... View more