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 (June 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 9 Jun 2004 00:09:36 +0300
Reply-To:   susan bander <susab@CNN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   susan bander <susab@CNN.COM>
Subject:   how to display time schedule for a day
Content-Type:   text/plain;

I'd like to chart, plot or some other way, show the following data, assuming a daily schedule starting at 06:00:00 and ending at midnight 23:59:59 (or 00:00:00)

what might be some options to show this and highlight via color codes the data

I would like to show the name of the person and then a timeline for each person

pseudocode example:

data a; input name $8. @9 type $8. @18 start time8. @27 stop time8. ltype; duration = start-stop; format start stop duration time.; cards; mjones vacation 08:00:00 16:30:00 1 bsmith lunch 11:15:00 11:25:00 2 bsmith break 13:25:00 13:35:00 2 ; run;

goptions reset=all border; data anno; length function color $8.; retain xsys ysys '2' size 2 color 'red'; set a; line=ltype; function='move';x = start; yc=type; output; function='draw';x = stop; yc=type; output; run;

axis1 order=('06:00:00't to '23:59:59't) label=('Start - Stop') minor=none; symbol1 i=none; title1 'Schedule today'; proc gplot data=a; plot type*stop / anno=anno haxis=axis1; run; quit;


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