TIME axes
are numeric axes that display SAS date or time values in an intelligent
way. Such axes are created whenever the primary plot has a SAS date,
time, or datetime format associated with a column that is mapped to
an axis. In the following example, the DATE variable has a SAS date
format associated with it. By default, the TIME axis decides an appropriate
tick value format and an interval to display. Notice that, in the
default case, when the X or X2 axis is a TIME axis, the space that
is used for the tick values is conserved by splitting the values at
appropriate date or time intervals and extracting larger intervals.
In this example, the column format for the DATE variable could be
MMDDYY or any other date-type format. The actual format serves only
as a hint and is not used directly, unless requested.
layout overlay;
seriesplot x=date y=close;
endlayout;
Note: In this example,
the data range for DATE was from 1Jan2004 to 1Dec2005. The TIME axis
chose the interval of MONTH to display tick values. Had the data range
been larger, say 1Jan1998 to 1Dec2005, the TIME axis would choose
a larger interval, YEAR, to display by default.