LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2009, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 29 May 2009 12:38:02 -0700
Reply-To:     bigD <diaphanosoma@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         bigD <diaphanosoma@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: Annotate error, killing me
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On May 29, 3:23 am, John2.Hendri...@gmail.com wrote: > On 28 mei, 21:07, bigD <diaphanos...@gmail.com> wrote: > > > > > Hi All, > > > I'm using the annotate facility to get proper formating on a > > subpercentage on a bar chart > > My code is as follows: > > > data b1; > > length function color style text $ 8; > > length subgroup $110; > > retain function 'label' color 'black' when 'a' style 'simplex' > > xsys ysys '2' position 'E' size 1 hsys '3'; /* it seems the > > size option does not work with activex driver */ > > set table_triage; /* output of a tabulate proc to get the row > > percents */ > > group=user_type; > > midpoint=user_type; > > subgroup=triage_level; > > text=left(put(visits_PctN_10,pctfmt.)); > > if visits_PctN_10 < 6 then text=''; /* Hide values less than 6 */ > > run; > > > options orientation=portrait topmargin=.5 in bottommargin=.5 in > > leftmargin=.5 in rightmargin=.5 in; > > goptions reset=all dev=activex ftext="Calibri" > > xpixels=320 ypixels=320; > > > legend2 > > label=("CTAS Triage Classification" position=(top center) ) > > order = ('(1) RESUSCITATION/LIFE THREATENING' '(2) Emergent' > > '(3) Urgent' '(4) Semi-Urgent' '(5) Non-Urgent'); / > > * not java compatible */ > > > AXIS1 length =1.9 in LABEL= ( A=90 '% of ED Patients') > > color=black > > width=2 > > major=(height=1); > > > AXIS2 length=2.25 in label=none > > color=black > > width=2 > > major=(height=1); > > > AXIS3 length=2.25 in > > label=none value=none; > > > ods html style=newstyle; > > proc gchart data =f2 annotate=b1 ; > > > Vbar user_type / > > TYPE=PCT > > subgroup=TRIAGE_LEVEL > > G100 > > GROUP=USER_TYPE > > NOZERO > > maxis=axis3 > > Raxis=axis1 > > GAXIS=AXIS2 > > width=15 > > space=0; > > run; > > > ODS HTML CLOSE; > > > The Log > > > NOTE: ERROR DETECTED IN ANNOTATE= DATASET WORK.B1. > > VARIABLE SHOWN HAS IMPROPER LENGTH IN ANNOTATE= DATASET > > SUBGROUP > > > Now , I've changed the length of subgroup to its proper length (41), a > > huge length (110), and let SAS decide length, and I always end up with > > this error. > > > I use this style of code on a very similar graph and I get the > > expected output.... > > > Thanks, > > > Bruce > > Hi Bruce, > > I'm not sure if I can be of much help here. A look at the SAS help for > annotate shows that the subgroup variable "Should match the length of > the SUBGROUP= variable in the GCHART procedure". Have you checked > that? > > Good luck, > John Hendrickx

I've had a lot of help from another list member, it seems to be a problem in v9.1 and not v9.2. I'll keep messing with it...

Thanks, Bruce


Back to: Top of message | Previous page | Main SAS-L page