I am using the following code to create a clustered bar chart. The values are pre-summarized from MEANS using preloaded formats for a complete dataset.
On the X axis, Day should appear but then also an analysis category (formatted numeric value) should also appear (it does not, only Day appears). Also, no legend appears either. When I remove the keylegend line, a legend appears on the right, but it is not correct. What am I missing?
proc sgplot data=xxx; vbar day / response = n groupdisplay = cluster stat = sum group=CATEGORY colorresponse=avalca1n colormodel = (green gold red black lightblue grey darkblue darkred)transparency=0.2 datalabel DATALABELATTRS = (size = 7pt family = "Courier New") ; xaxis values = (0 ,30,90) labelattrs = GraphUnicodeText label = 'Day (Baseline Set to Day 0)' labelattrs = (size = 7pt family = "Courier New" ) valueattrs = (size = 7pt family = "Courier New"); yaxis values = (0 to 9 by 1) labelattrs = GraphUnicodeText label = 'n' grid labelattrs = (size = 7pt family = "Courier New" ) valueattrs = (size = 7pt family = "Courier New"); keylegend / valueattrs = GraphUnicodeText type=fillcolor title="" valueattrs = (size = 7pt family = "Courier New") sortorder = ascending; run;
... View more