Hello, I am trying to make a simple stacked bar chart using a single variable with 2 types, and then I would like segment labels for both segments of the stacked bar chart. I am unable to get the data labels to show up for both segments. If I add "datalabel" I just get the sum of the whole column, and otherwise it is blank. My code for creating the variable and the sgplot are below, as well as the output as I am seeing it. My log doesn't have any errors. Thanks in advance! data ip_stacked_beds; set monthly; IP_Beds = IP_used; Type = 'Used '; output; IP_Beds = IP_empty; Type = 'Empty'; output; run; ods graphics / width=800px height=400px; proc sgplot data=ip_stacked_beds; title 'Used and Empty IP Beds, by Month'; format date_num nldateymm.; vbar date_num / response=IP_Beds group=Type groupdisplay=stack barwidth=0.9 nooutline seglabel seglabelattrs=(size=6pt); xaxis type=discrete display=(nolabel); yaxis grid label='IP Beds (Count)'; run;
... View more