Time Series Graph
What is a time series graph?
A time series graph (also known as a time series chart or time plot) is a graph of measurements recorded over time, with time on the horizontal x-axis and the measured value on the vertical y-axis. The points are usually joined by a line in time order, showing trends, repeating cycles, sudden changes and unusual values.

Three weeks of simulated power demand for an office building, read every 15 minutes, with a 24-hour moving average, meter outages shaded and a retrofit marked. Try the interactive version.
- A time series graph plots values in time order against a time axis; the line between points stands for the time in between.
- Read it in layers: the trend, the repeating (seasonal) pattern, sudden level shifts, single outliers, then the noise that is left.
- Break the line where data is missing. A line joined across a gap draws readings that were never taken.
- Store times in UTC, label them in a stated time zone, and resample with the right aggregate (mean, sum, max or last).
- A live time series appends new readings and drops the oldest, so the graph shows a moving window of fixed length.
A time series is a list of values of one quantity, each with a time stamp, in time order: a city's hourly temperature, a share's daily closing price, a heart monitor's 500 samples a second, a website's visits per day. Two things set it apart from other data. The order matters, and neighbouring values tend to resemble each other (statisticians call this autocorrelation), so the graph has to keep them in sequence.
What does a time series graph look like?
Most time series graphs share the same parts:
- An x-axis of dates or times, running left to right from oldest to newest, with labels such as "Mon 9", "12:00" or "2026".
- A y-axis with the measured quantity and its unit, for example "Power demand (kW)".
- A line through the data points in time order. Sparse data, such as a yearly survey, often adds a marker at each point.
- Often, extra lines for a moving average, a target or a limit, and markers or shaded bands for events and missing data.
A line graph of sales by month, a stock chart, a weather station's temperature record and a server's CPU load over the last hour are all time series graphs.
How to read a time series graph
Most time series are a mix of a few simple patterns. Learning to pull them apart by eye is most of the skill. The diagram splits the demand series from the image above into a slow trend, a repeating cycle and leftover noise; added together, they make the series you see.
| What to look for | What it looks like | In the example |
|---|---|---|
| Trend | A long-run rise or fall that outlasts the repeating pattern | Demand creeps up by about 0.6 kW a day |
| Seasonality | A pattern that repeats over a fixed, known period: a day, a week, a year | A peak every weekday afternoon, smaller at weekends |
| Cycles | Rises and falls without a fixed period, usually lasting longer than a season | None in three weeks; business cycles in sales data are the classic case |
| Level shift | A sudden step to a new level that stays | Demand drops by 12 kW when a retrofit goes live on 15 March |
| Outliers | Single points far from their neighbours | Two one-reading spikes, each over 30 kW above the readings either side |
| Noise | The irregular wiggle left when everything above is taken out | Readings scatter by a few kW around the daily shape |
| Gaps | Stretches with no data | Three meter outages of 1 to 6 hours |
When the parts add up, the series is additive:
where is the value at time , the trend (including any level shifts), the seasonal part and the remainder. When the seasonal swings grow in proportion to the level, as with retail sales that rise every December by a bigger amount each year, the parts multiply instead. Plotting such a series on a log scale turns it back into an additive one, with swings of steady height.
Read a time series graph in this order:
- Read the axes: what is measured, in what unit, over what period, how often, and in which time zone.
- Find the trend. Ignore the wiggles and ask whether the level at the right is higher or lower than at the left, and by how much per day, month or year.
- Find the repeating pattern and its period. Count the peaks between two dates: seven peaks a week means a daily cycle.
- Look for steps. A sudden change that persists usually has a cause with a date: a new machine, a price change, a policy.
- Look for single odd points. Check whether they are real events or measurement errors before drawing conclusions from them.
- Look for gaps, and for flat stretches that might be a stuck sensor rather than a steady value.
Seasonality vs cycles
The two words are often mixed up. Seasonality has a fixed period set by the calendar or the clock (daily, weekly, yearly), so you can predict when the next peak comes. A cycle rises and falls over irregular lengths, such as an economic expansion and recession, and you can't say in advance when it will turn.
Time series graph example: describing one
Here is how to put the example graph into words, with the numbers read from it. The data is the simulated building meter from the image at the top: 2,016 readings, one every 15 minutes, from Monday 2 March to Sunday 22 March 2026, in UTC.
| Feature | What the graph shows |
|---|---|
| Trend | A slow rise, about 4 kW a week |
| Seasonal pattern | A daily cycle peaking around 13:00. Weekday afternoons reach about 85 to 98 kW, nights fall to about 45 to 57 kW, and weekends stay low |
| Level shift | On Sunday 15 March demand steps down by about 12 kW. The weekday average falls by less, from 71.6 kW (9 to 13 March) to 65.1 kW (16 to 20 March), because a week of the upward trend adds back about 4 kW and the outages on 10 and 12 March left out some midday peaks from the earlier week |
| Outliers | Spikes to 107 kW at 12:30 on Saturday 7 March, and to 93 kW at 01:30 on Saturday 21 March, with the readings either side between 55 and 67 kW |
| Gaps | No readings on 10 March from 10:00 to 16:00, on 12 March from 10:00 to 11:00, and from 21:00 on 21 March to 03:00 on 22 March |
A template for describing any time series graph: "Over [period], [quantity] [rose / fell / stayed level] by about [rate]. It [peaks / dips] every [period], at around [value]. On [date], it [jumped / dropped] by [amount], probably because [cause]. [Outliers and gaps], which [do / don't] change the picture."
For the example: "Over three weeks in March 2026, the building's power demand rose by about 4 kW a week. It peaked every weekday around 13:00 at 85 to 98 kW and was much lower at weekends. On 15 March it dropped by about 12 kW, when the retrofit went live. Two single-reading spikes look like meter glitches, and three outages leave gaps of 1 to 6 hours, one of them over the Tuesday 10 March peak."
Regular and irregular sampling, and gaps
A regularly sampled series has a reading at a fixed interval: every 15 minutes, every day, 1,000 times a second. An irregular one has readings whenever something happens: a trade, a sensor that reports only when its value changes, a patient's blood test.
- Plot both against a true time axis, where the distance between two points is proportional to the time between them. Some charting tools place every point an equal distance apart, as categories; with irregular data that squeezes long quiet periods and stretches busy ones.
- Markets and some machines stop at known times, overnight or at weekends. A date axis that skips the closed hours avoids long flat lines, but must make the jump visible, for example with a gridline or a label.
- Decide what counts as a gap. For regular data, a missing reading or a time step longer than about one and a half times the normal interval is a gap. For irregular data, choose a threshold from what the sensor should do (a sensor that reports every change should still send a heartbeat at least once a minute, say).
The line between two points says "the value moved smoothly from here to there". Across a six-hour outage that claim is false, and in the diagram the joined line hides a midday peak near 100 kW. Store missing readings as empty values (NaN in most programming languages), let the line break there, and shade long outages so readers know why the line stops.
Date-time axes, time zones and labels
Time is the axis that causes the most bugs. A few rules prevent most of them:
- Store UTC timestamps. Keep times as Coordinated Universal Time, for example as Unix time (seconds or milliseconds since 1 January 1970 UTC), and convert to local time only for display.
- Say which time zone the labels use. "12:00" means different moments in London, Chicago and Tokyo. Put the zone in the axis title or the tooltip, such as "Time (UTC)" or "Local time (Europe/London)", using names from the IANA time zone database.
- Expect daylight saving time. In a zone with daylight saving, one local day a year has 23 hours and another has 25. Daily totals for those days differ for that reason alone, and a repeated hour can make a line double back if times are stored as local clock readings.
- Let labels follow the zoom. A good date axis shows years when you see a decade, then months, days, hours and seconds as you zoom in, and gives the wider unit once at each boundary ("Mar 9" then "06:00", "12:00", "18:00").
- Write unambiguous dates. 03/04/2026 is 3 April in the UK and 4 March in the USA. ISO 8601 dates (2026-03-04) or month names avoid the confusion.
- Watch the precision of high-rate data. A 64-bit floating-point number holding today's Unix time in seconds can only resolve steps of about 0.24 microseconds. For microsecond or nanosecond data, store times as an offset from a nearby start time.
One series or many: overlays, small multiples and stacked axes
Comparing several time series is common: sites, products, sensors, years. Choose the layout by how many series there are and whether they share a unit.
| Layout | Use it when | Watch out for |
|---|---|---|
| Overlay: several lines on one chart | Up to about five series in the same unit, such as three sites' temperatures | More lines become a tangle that is hard to follow |
| Index to 100 | Comparing growth of series with different sizes, such as two shares' prices | Readers lose the actual values; say what the base date is |
| Small multiples: one small chart per series, same scales | Many series with the same unit, where the shape matters more than exact crossings | Use the same y-range in every panel, or say clearly that they differ |
| Stacked axes or panes on a shared time axis | Related series in different units, such as speed, temperature and vibration | The time axes must line up exactly, so one moment sits in one vertical line |
| Two y-axes on one chart | Two series in different units, when space is tight | The scales are arbitrary, so any crossing of the two lines means nothing |
| Heatmap: time across, series down, colour for value | Hundreds of series, such as every server in a data centre | Exact values are hard to read from colour |
Smoothing a time series with a moving average
A moving average replaces each reading with the average of the readings in a window around it, which irons out noise and makes the trend and the cycle easier to see. The trailing moving average of the last readings is