|
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;
|