Object Reference : Object View and Procedure Reference : Graph
Control labeling of the bottom date/time axis in time plots.
datelabel sets options that are specific to the appearance of time/date labeling. Many of the options that also affect the appearance of the date axis are set by the Graph::axis command with the “bottom” option. These options include tick control, label and font options, and grid lines.
graph_name.datelabel option_list
datestring should be one of the supported data formats describing how the date should appear. The datestring argument should be enclosed in double-quotes. For example, “yy:mm” specifies two-digit years followed by a colon delimited and then two-digit months.
You may use the special single space datestring “ “ to indicate automatic formatting.
EViews provides considerable flexibility in formatting your dates. See “Date Formats” for a complete description.
interval(step_size [,steps][,align_date])
where step_size takes one of the following values: “auto” (steps and align_date are ignored), “ends” (only label endpoints; steps and align_date are ignored), “all” (label every point; the steps and align_date options are ignored), “obs” (steps are one observation), “year” (steps are one year), “m” (steps are one month), “q” (steps are one quarter).
steps is a number (default=1) indicating the number of steps between labels.
align_date is a date specified to receive a label.
Note, the align_date should be in the units of the data being graphed, but may lie outside the current sample or workfile range.
Specify date label spanning: “auto” (automatic determination), “on” (turn spanning on; label start of period, tick on obs.), “between” (center label on period), “trimbetween” (center label on period, trim spaces at axis ends).
Consider the case of a yearly label with monthly ticks. If span is on, the label is centered on the 12 monthly ticks. If the span option is off, year labels are put on the first quarter or month of the year.
end / -end
[Use / Do not use] end-of-period labeling.
graph1.datelabel format(yyyy:mm)
will display dates using four-digit years followed by the default delimiter “:” and a two-digit month (e.g. – “1974:04”).
graph1.datelabel format(yy[q]mm)
will display a two-digit year followed by a “q” separator and then a two-digit month (e.g. – “74q04”)
graph1.datelabel interval(y, 2, 1951)
specifies labels every two years on odd numbered years.
See “Graph Objects” for a discussion of graph options.
See also Graph::axis, Graph::options, and Graph::setelem.