Time series plot: chart data over time and spot trends
A time series plot draws values in the order they occurred, with time on the horizontal axis and the measurement on the vertical axis, and connects consecutive points with lines. It is the simplest way to see how a process behaves over time: whether it is steady, drifting, shifting after a change, or repeating a cycle. Several series can share one plot so you can compare lines, machines or plants period by period.
When to use it
- You track a metric over time, such as weekly scrap, daily output, hourly temperature or monthly complaints.
- You want to see whether a change (a new material, a new setting, a repair) is followed by a change in the data.
- You compare two or more series that cover the same periods.
- You look for seasonal or daily patterns before choosing a forecasting method such as decomposition or trend analysis.
How it works
- Sort the data by time. Each value needs a time stamp or a position in the sequence.
- Put time on the horizontal axis with equal spacing for equal intervals: one week should take the same width everywhere.
- Plot each value and connect consecutive points with straight lines. The lines show order; they do not mean anything happened between the points.
- Leave a gap for a missing period rather than joining across it.
- For several series, use one line per series with a clear label, or stack separate panels with the same time axis.
- Mark known events, such as a process change, with a vertical reference line.
A time series plot has no center line or limits. A run chart adds the median and tests for runs, and a control chart such as the individuals chart adds limits that separate routine variation from signals. Use the time series plot to see the story; use those charts to decide whether a change is real.
Example
A plant runs two machining lines making the same part. In week 9, Line B switched to a new cutting fluid; Line A kept the old one. The quality engineer plots the weekly scrap rate (%) of both lines for 16 weeks:
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Line A | 2.27 | 1.86 | 1.71 | 1.37 | 2.01 | 2.41 | 2.11 | 2.23 | 2.36 | 1.88 | 2.76 | 1.88 | 2.19 | 2.78 | 2.07 | 2.13 |
| Line B | 1.87 | 2.08 | 1.47 | 1.84 | 2.42 | 2.05 | 1.94 | 2.09 | 2.32 | 2.48 | 2.80 | 2.47 | 3.25 | 3.15 | 3.74 | 3.75 |
For the first 8 weeks the two lines are indistinguishable: Line A averages 2.00% and Line B 1.97%, crossing each other from week to week. From week 9 on, Line B climbs almost steadily and ends at 3.75%; its average for weeks 9 to 16 is 3.00%. Line A stays in the same band; its second-half average of 2.26% is a little higher than its first-half 2.00%, but its points go up and down without a direction.
Two features of the plot carry the argument. First, Line B's rise starts at the week of the change and keeps going, which looks like a gradual effect, such as the new fluid losing concentration or contaminating the sump, rather than a one-time step. Second, Line A serves as a comparison: plant-wide causes, such as a bad lot of bar stock, would have hit both lines. The engineer's next steps are to check the fluid concentration records and to put Line B's weekly rate on a control chart with limits from weeks 1 to 8.
How to read the results
- Level. Where does the series sit, and is it the same at the start and the end?
- Trend. A steady climb or decline over many periods, as for Line B after week 9.
- Shift. A sudden step to a new level that then stays flat, often right after a change.
- Cycles and seasonality. Patterns that repeat with a fixed period: by shift, day of the week, or month.
- Spikes. Single points far from their neighbors. Check the record for that period.
- Comparisons. When two series move together, look for a common cause; when only one moves, look for what changed on that one.
Common mistakes
- Uneven time spacing. Plotting by row number when some weeks are missing compresses time and distorts trends. Use real dates or leave gaps.
- Reading noise as a trend. Three rising points in a row happen by chance all the time. Use a run chart or control chart rules before acting.
- Truncating or stretching the vertical axis so that small wiggles look dramatic. Keep a scale that shows routine variation for what it is.
- Too many series on one plot. Beyond four or five lines, the plot becomes a tangle; use separate panels with the same axes.
- Mixing rates with different bases. A weekly scrap percentage from a week with half the usual output is less certain than the others; note low-volume periods.
Frequently asked questions
What is the difference between a time series plot and a run chart?
Both show data in time order. A run chart adds a center line, usually the median, and tests for runs and trends. A time series plot just shows the data, which makes it handier for comparing several series.
What is the difference between a time series plot and a control chart?
A control chart adds a center line and control limits computed from the data, plus rules for special causes. It tells you when to act; a time series plot shows the pattern but leaves the judgment to you.
How do I show several variables over time?
Overlay up to four or five series on one plot if they share units and scale, or stack panels with a shared time axis if they do not.
How many points do I need to see a trend?
There is no fixed number, but a trend should persist over several periods and be large compared with the period-to-period scatter. Run chart and control chart rules give objective criteria; for example, 6 points in a row all increasing is one of the standard tests.