on 09-16-201303:31 PM - last edited on 10-10-201510:12 PM by LainieH
In a simple stacked bar chart, such as on a graph like such: proc sgplot data=sashelp.prdsale; vbar year/response=actual group=quarter groupdisplay=stack; run; It is often desired to have the response value labeled on each stacked bar. This can be done with annotation, but it is cumbersome and causes difficulty when using SGPANEL (for example) to combine multiple charts. Currently, datalabels create tables on top or bottom when used with stacked bar charts, but do not overlay the groups. Instead doing this: proc sgplot data=sashelp.prdsale; vbar year/response=actual group=quarter groupdisplay=stack datalabel datalabelpos=center; run; or something like that would be simple, and as the data tip already contains this information, this should not be complex to implement.