Had another go using annotate, have a look before. Had to use RANGES to get the desired thickmarks. Give it a try.
data ts;
do year = 2005 to 2015;
do month = 1 to 12 by 2;
myDate = mdy(month, 1, year);
value = ceil(ranuni(123) * 5);
y0=0;
if month = 1 then do;
myDate_c = put(myDate, monyy.);
end;
else do;
call missing(myDate_c);
end;
if myDate > "01aug2015"d then do;
leave;
end;
row + 1;
output;
end;
end;
format
myDate date9.
value nlnum12.
;
run;
%SGANNO
data ts_anno;
set ts(keep=myDate myDate_c );
where myDate_c not is missing;
%SGTEXT(
LABEL=myDate_c
, ANCHOR= "bottom"
, TEXTCOLOR="red"
, X1SPACE="datavalue"
, X1=myDate
, y1space="WALLPERCENT"
, y1=-8
, LAYER="front"
, rotate=45
)
run;
proc sgplot data=ts pad=(bottom=10pct) sganno=ts_anno;
series x=myDate y=value;
xaxis type=time
ranges=(
"01JAN2005"d - "01jul2015"d
)
display=(novalues nolabel)
grid
;
yaxis
min=0 max=5
grid
;
run;
... View more