WLJS LogoWLJS Notebook

DateListPlot

DateListPlot[{{date1, y1}, {date2, y2}, ..., {daten, yn}}] plots points with values yi at a sequence of dates.

DateListPlot[{y1, y2, ..., yn}, datespec] plots points with dates at equal intervals specified by datespec.

DateListPlot[tseries] plots the time series tseries.

DateListPlot[{data1, data2, ...}] plots data from all the datai.

Examples

Plot time series data:

DateListPlot[{{{2020, 1}, 10}, {{2020, 6}, 15}, {{2021, 1}, 12}}]

From a TimeSeries object:

ts = TimeSeries[{1, 2, 3, 4}, {{2020, 1, 1}, Automatic, "Month"}];
DateListPlot[ts]

Please visit the official Wolfram Language Reference for more details.

On this page