Hi tammy Since the annotate together with SGPANEL does not support a drawspace that supports "data", this is from the doc: Restriction For the SGPANEL and SGSCATTER procedures, only GRAPHPERCENT, GRAPHPIXEL, LAYOUTPERCENT, and LAYOUTPIXEL values are valid. You have to go another way, in a recent blog entry by outlined a technique with HIGHLOW and SCATTER plot to do something similar to what you want.Building on that, here is a code sample for the graph you want to do, it does some data preparation so that the HIGHLOW and SCATTER plots can be used. I guess there are other solutions as well data work.tam; infile datalines dlm=','; input Risk $ Numerator Service RptDate $; key = catx("_", service, RptDate, risk ); datalines; A,5,1,Begin A,8,1,End B,3,1,Begin B,9,1,End C,1,1,Begin C,4,1,End A,2,2,Begin A,6,2,End B,4,2,Begin B,1,2,End C,6,2,Begin C,3,2,End ; proc sort data=work.tam; by key; run; data tam2; set tam; by service rptdate NOTSORTED; length numLow numHigh 8; retain numHigh; if first.service = 1 or first.rptdate = 1 then do; numlow = 0; numHigh = numerator; end; else do; numlow = numHigh; numHigh = numLow + numerator; end; labelpos = numLow + (range(numLow, numHigh) / 2); labelValue = range(numLow, numHigh); run; proc sgpanel data=work.tam2; panelby service / layout=columnlattice onepanel noborder colheaderpos=bottom novarname ; highlow x=RptDate low=numlow high=numhigh / group=Risk type=bar name="hl" ; scatter x=rptDate y=labelpos / datalabel=labelValue datalabelpos=center markerattrs=(size=0) labelStrip name="sc" ; keylegend "hl" / position=right; run;
... View more