Skip to content

Charts over time

Lines, calendars, seasonal plots and decompositions, with honest treatment of gaps, scales and dual axes.

Applied ~10 min8 steps

You will be able to

  • Choose a chart for trend, cycle or a single spike
  • Show gaps in a series honestly
  • Explain why dual axes mislead

Read first

01

The line chart's promise

Read

A line says values change continuously from one point to the next. That fits daily temperature. It doesn't fit categories, or gaps: a line across three missing months invents data you don't have.

Show a gap as a gap, and don't sort a time axis by anything other than time.

Line chartHow does a value change over time, and how do series compare?
View data
datesalesregionevent
1,672,617,600,000109.30North—
1,672,617,600,00068.500South—
1,672,617,600,00059.700West—
1,672,704,000,000115.50North—
1,672,704,000,00077.100South—
1,672,704,000,00068.800West—
1,672,790,400,000115.50North—
1,672,790,400,00074.800South—
1,672,790,400,00046.800West—
1,672,876,800,000110.80North—
1,672,876,800,00096South—
1,672,876,800,00074West—
1,672,963,200,000109.50North—
1,672,963,200,00087.800South—
1,672,963,200,00078.100West—
1,673,049,600,00085.500North—
1,673,049,600,00065.600South—
1,673,049,600,00048.400West—
1,673,136,000,00076.100North—
1,673,136,000,00063.400South—
1,673,136,000,00049.700West—
1,673,222,400,000102.60North—
1,673,222,400,00087.300South—
1,673,222,400,00050.800West—
1,673,308,800,000104.30North—
1,673,308,800,00079.100South—
1,673,308,800,00051.100West—
1,673,395,200,000106.30North—
1,673,395,200,00080.300South—
1,673,395,200,00055.900West—
1,673,481,600,000104.50North—
1,673,481,600,00078.600South—
1,673,481,600,00071.600West—
1,673,568,000,000122.30North—
1,673,568,000,00088.200South—
1,673,568,000,00065.200West—
1,673,654,400,00079.500North—
1,673,654,400,00053.700South—
1,673,654,400,00064.500West—
1,673,740,800,00061.700North—
1,673,740,800,00039.100South—
1,673,740,800,00040West—
1,673,827,200,000101.40North—
1,673,827,200,00081.100South—
1,673,827,200,00057.300West—
1,673,913,600,00099.700North—
1,673,913,600,00088.400South—
1,673,913,600,00054.400West—
1,674,000,000,000106.10North—
1,674,000,000,00087.200South—
1,674,000,000,00071.500West—
1,674,086,400,000113.50North—
1,674,086,400,00068.300South—
1,674,086,400,00059West—
1,674,172,800,000126.70North—
1,674,172,800,00090.100South—
1,674,172,800,00066.800West—
1,674,259,200,000102.30North—
1,674,259,200,00071.100South—
1,674,259,200,00054.100West—

First 60 of 3276 rows.

02

Which chart for which pattern?

Predict

Predict first

You want to know whether July is usually higher than March, and whether that's changing. Which chart answers this most directly?

Line chart of three yearsSeasonal subseriesPie chart per month
Reveal

The answer: Seasonal subseries

A Seasonal subseries puts each month in its own small panel, so you compare Julys with Julys. A plain line can hide this among trend and noise.

Seasonal subseries (cycle plot)What is the seasonal pattern, and is each month changing across years?
View data
monthpassengers_k
1,420,070,400,000169
1,422,748,800,000153
1,425,168,000,000184
1,427,846,400,000184
1,430,438,400,000177
1,433,116,800,000211
1,435,708,800,000234
1,438,387,200,000219
1,441,065,600,000190
1,443,657,600,000174
1,446,336,000,000157
1,448,928,000,000179
1,451,606,400,000169
1,454,284,800,000167
1,456,790,400,000202
1,459,468,800,000190
1,462,060,800,000191
1,464,739,200,000217
1,467,331,200,000244
1,470,009,600,000246
1,472,688,000,000218
1,475,280,000,000184
1,477,958,400,000165
1,480,550,400,000178
1,483,228,800,000184
1,485,907,200,000178
1,488,326,400,000200
1,491,004,800,000199
1,493,596,800,000200
1,496,275,200,000226
1,498,867,200,000250
1,501,545,600,000247
1,504,224,000,000232
1,506,816,000,000198
1,509,494,400,000168
1,512,086,400,000192
1,514,764,800,000193
1,517,443,200,000182
1,519,862,400,000231
1,522,540,800,000204
1,525,132,800,000202
1,527,811,200,000242
1,530,403,200,000269
1,533,081,600,000270
1,535,760,000,000238
1,538,352,000,000203
1,541,030,400,000184
1,543,622,400,000201
1,546,300,800,000207
1,548,979,200,000204
1,551,398,400,000240
1,554,076,800,000227
1,556,668,800,000213
1,559,347,200,000255
1,561,939,200,000294
1,564,617,600,000283
1,567,296,000,000252
1,569,888,000,000233
1,572,566,400,000195
1,575,158,400,000222

First 60 of 120 rows.

03

Patterns of many kinds

Read
ChartShows
Rolling statisticstrend through noise
Calendar heatmapweekday and holiday patterns
Weekday × hour heatmapdaily rhythm
Lag plot, ACF & PACFdependence on past values
Seasonal decompositiontrend, season and remainder apart
04

Break a series apart

Explore

Change the trend, season and noise, and watch the decomposition recover each. Then raise the noise until the season disappears from view.

DExplorable · Compose and decompose a series

How much of a series is trend, how much is season, and how much is noise?

How strong is the seasonality on a 0–1 scale?

0.50
How sure?
0.10
3.0
1.0

The series

Trend

Seasonal

Remainder

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

05

Dual axes

Read

Two y-axes let you draw any two series on one chart. Their apparent crossings and shared rises depend on how you scale each axis, and those scales are arbitrary.

06

Try it

In the app

In Charts, open Line chart and choose Use my data on a dated column. Then open Seasonal subseries on the same data, and compare what each one shows you.

07

Check your understanding

Checkpoint

Check yourself

A sensor was off for two weeks. How should a line chart treat that?

Show the answer

Answer: b

A connecting line claims values you never measured, and zeros are false. A gap is the honest picture.

Check yourself

Why are dual-axis line charts risky?

Show the answer

Answer: a

Rescale one axis and the crossings move or vanish. The picture shows your choice as much as the data.

08

Recap

Recap
  • Lines imply continuity, so show gaps as gaps.
  • Use seasonal plots to compare like with like.
  • Avoid dual axes: use panels or an index.