Hi SAS Experts, Am trying to displey the values of variable which have numbers in the stacked bar graph. is there is anyway to do this. Below is my data and code. data test1; input name$ cnt year; datalines; abc 21 2012 def 20 2012 ghi 490 2012 gha 5 2012 jkl 5 2012 mno 46 2012 pqr 120 2012 abc 15 2013 def 26 2013 ghi 600 2013 gha 155 2013 jkl 50 2013 mno 146 2013 pqr 124 2013 abc 201 2014 def 120 2014 ghi 49 2014 gha 50 2014 jkl 155 2014 mno 406 2014 pqr 128 2014 abc 121 2015 def 220 2015 ghi 190 2015 gha 85 2015 jkl 506 2015 mno 146 2015 pqr 128 2015 ; run; data barlabel1; length color $ 8; retain color 'black' when 'a' xsys ysys '2' position 'E'; set test1; midpoint=year; /* subgroup=staffing_type;*/ /* text=put(cnt,5.);*/ run; axis1 label=none major=none minor=none style=0 value=none; axis2 label=none; legend1 label=(position=top) position=(right middle) across=1 shape=bar(.11in,.11in); ods pdf file="path.pdf"; ods graphics / reset width=600px height=500px imagefmt=png imagename='BarChart'; proc sgplot data=test1 sganno=barlabel1; vbar year/response=cnt group=name groupdisplay=stack; yaxis label="year cnt"; title h=2 "new"; run; 1.Test-add_values is my output 2. I want the output like the below image
... View more