Showing time: trends, seasonality and change, and how to tell growth from December

TL;DR

Difficulty: Intermediate

Every time chart is a comparison: with the last period, with the same period last year, or with the trend. Name it first.

  • Lines for dense series, dots at true dates for sparse ones, bars for a few amounts.
  • A moving average keeps what is slower than its window, lags or loses its ends, and echoes single spikes. Say what you used.
  • Overlay the years and chart year over year change to cancel the season; seasonally adjust or use STL to see the direction.
  • Slopegraphs for two moments, indexing for different sized series, small multiples for many, no dual axes for two measures.
  • Worked example: a roaster's record December was the season on a trend that went flat in June.

"Are we growing, or is it just December?" is the question every seasonal business asks in January, and the raw line cannot answer it. This chapter shows how to separate the trend, the season and the noise, which chart answers which comparison, and how to tell the founder something she can act on.

Are we growing, or is it just December?

Every January the same chart lands on a founder's desk. A line that wanders along for eleven months, then shoots up like a rocket in December. Somebody has written "record month" above it. And the founder, who has seen this film before, asks the only question that matters: are we actually growing, or is it just Christmas again?

This chapter is about answering that question properly. Time is the most common axis in business charts, and it is also where most of them go wrong. A time chart has to separate three things that arrive mixed together in the raw numbers: the trend (where the business is really heading), the season (what happens every year regardless) and the noise (what happened this week by accident). Get the separation right and the chart answers the question. Get it wrong and a perfectly honest number tells a false story.

The chapter builds on mapping data to scales, axes and coordinate systems, so read that first if axes and log scales are new to you.

Example: the data on Joe's desk

The example business, as in every chapter of this series, is invented: Ridgeway Coffee, a speciality roaster in Oxford selling one off orders online, coffee subscriptions and wholesale to cafés at ridgewaycoffee.example. Revenue is £2.4 million a year, 45% from subscriptions. There are 3,600 active subscribers on two plans: "Usual" (the same coffee every time) and "Explorer" (a different coffee each time). Average monthly churn is 4.2%, with Usual at 2.6% and Explorer at 7.8%.

The founder, Maya, has asked Joe, her analyst, one question after the December numbers came in: "Are we growing, or is it just December?" Joe has weekly subscription sign ups for 2023 and 2024. The figures below are derived for this example and labelled as such: 1,993 sign ups across the 52 weeks of 2023 and 2,290 across the 52 weeks of 2024. By calendar month, 2023 had 1,996 sign ups and 2024 had 2,305. December 2024 alone brought 489, against 188 in November. That is the line Maya is looking at. By the end of this chapter, Joe will have answered her with four charts, and the answer is more interesting than yes or no.

Name the comparison before you draw anything

Here is the idea I would put above every time chart, and it is the one the textbooks circle without naming. Any statement about change over time is a comparison, and there are only three things you can compare a number with:

  • The last period. This week against last week, December against November. It tells you about momentum, but it is ruled by the season.
  • The same period a year ago. This December against last December. It cancels the season, because both sides contain it.
  • The trend. Where the number would be with the season and the noise removed. It tells you where the business is heading.

I call it the "compared with when?" test. Before you choose a chart type, write down which of the three comparisons your audience's question needs. A question about direction needs the trend. A question about a seasonal campaign needs the year over year view. A question about whether something just broke needs last period. Most misleading time charts are not dishonest. They simply answer a different comparison from the one the reader asked about, and nobody notices because all three use the same raw numbers.

Example: three true statements about Ridgeway's December

Joe writes down Ridgeway's December 2024 three ways.

  • Against the last period: 489 sign ups against 188 in November. The change is (489−188)/188=1.60(489 - 188) / 188 = 1.60, so December was up 160%.
  • Against the same period a year ago: 489 against 455 in December 2023. The change is (489−455)/455=0.075(489 - 455) / 455 = 0.075, so up 7.5%.
  • Against the trend: once the season is taken out (I show how later), December 2024 sits at 188 seasonally adjusted sign ups, the same as November and slightly below the peak of 195 in May and June.

All three are true. "Up 160%" is what the raw line shouts and it answers nothing Maya asked, because December is always up on November. "Up 7.5%" is honest but small. "Flat since the summer" is the one that answers her question about direction. The rest of this chapter is about building the charts that show each comparison cleanly, and choosing the one that matches the question.

Know whether you are plotting a level or a flow

Antony Unwin, in the Handbook of Data Visualization, separates two kinds of time data that look the same in a spreadsheet: values measured at a moment (a patient's weight, a share price) and summaries over a period (how much was eaten in a month, how many shares traded in a day)1. I find it the most useful distinction in the whole topic, so I give it business names. A level is a snapshot: active subscribers on 31 December, cash in the bank, stock on the shelf. A flow is a count per period: sign ups per week, orders per day, revenue per month.

The two behave differently on a chart, for good reasons.

  • A flow depends on the length of its period. A month with five Mondays has more orders than one with four, February has fewer days than March, and a "monthly" bar chart quietly compares periods that are not the same size. A level has no such problem.
  • A flow is naturally shown as bars or a line from a zero baseline, because the reader reads the amount as a length. A level is read as a position, so a line that does not start at zero is acceptable, which Knaflic makes clear for line graphs while insisting bar charts must start at zero2.
  • Levels and flows are connected. The level changes by the inflow minus the outflow. That is why a subscription business can have record sign ups and a shrinking customer base in the same month.

Example: the subscription treadmill

Ridgeway's active subscribers are a level. Sign ups and cancellations are flows. With 3,600 subscribers and 4.2% monthly churn, Ridgeway loses about 3,600×0.042=1513{,}600 \times 0.042 = 151 subscribers a month. That is the treadmill: the first 151 sign ups of every month only keep the business where it is. In 2024 sign ups averaged 2,305/12=1922{,}305 / 12 = 192 a month, so the net growth was roughly 192−151=41192 - 151 = 41 a month, not 192.

The plans run on treadmills of very different speeds. Per 100 subscribers, Usual loses 2.6 a month and Explorer 7.8. So Explorer needs three times as many sign ups per 100 subscribers just to stand still. In absolute numbers, about 70% of subscribers are on Usual and 30% on Explorer, 2,520 and 1,080. That gives about 2,520×0.026=662{,}520 \times 0.026 = 66 cancellations a month on Usual and 1,080×0.078=841{,}080 \times 0.078 = 84 on Explorer, about 150 in total, the same as the 151 above once rounding is allowed for. Explorer holds 30% of the subscribers and causes 84/150=0.5684 / 150 = 0.56, or 56%, of the cancellations. Keep that in mind: when we split December's sign ups by plan later, it matters which treadmill the new sign ups land on.

Joe also checks the level directly. Using a constant 4.2% churn as a simplification, the derived active subscriber count runs from about 2,840 at the end of 2023 to 3,600 at the end of 2024, and 353 of that rise happened in December alone, because the December sign up wave lands on the level all at once. A chart of the level would show a cliff in December too. Neither chart is wrong. They answer different questions.

Lines, dots or bars: let the rhythm of the data decide

Claus Wilke explains the line chart from first principles in his chapter on time series3. Time gives the data an order: every point has one neighbour before it and one after it. A line joins neighbours, so it shows that order. The lines between the points are not data. They are a guide to the eye, and Wilke suggests saying so in the caption when the points are far apart, since a measurement taken between them might not land on the line.

From that one idea follow the practical rules.

  • Dense, regular series: a line without dots. When there are dozens or hundreds of points, the dots add clutter and the trend matters more than any single point. Wilke drops the dots in exactly this case.
  • Sparse series: dots, with or without a thin connecting line. With six or eight points, each one is an event worth seeing, and the line is only a hint.
  • Few periods of a flow, compared as amounts: bars. Four quarters of revenue are four amounts, and bars from a zero baseline let the eye compare lengths. The ordering still runs left to right in time.
  • Filled areas only from zero. Wilke allows shading under the line to stress the overall trend, but only when the axis starts at zero, because the height of the area then means the value.
  • Several series: label the lines directly. A legend makes the reader shuttle between key and chart. Wilke shows how labelling each line at its end removes that work, and Unwin makes the same point for legends in general1.

Knaflic adds a rule that sounds obvious and is broken constantly: the intervals on a time axis must be consistent2. If the first part of the axis is in decades and the last part in years, equal distances on the page stand for unequal stretches of time, and the slope lies.

Irregular intervals: put each point at its true date

Not all data arrives on a grid. Wolfgang Jank and colleagues, writing in the Handbook about functional data, deal with auction bids that arrive at irregular moments4. Their approach is instructive for any business series with gaps: plot observations at their true times, and if you need a smooth curve or want to compare several series, first interpolate each one onto a common grid of time points and use the same smoothing settings for all of them. Otherwise a difference between two curves may come from the smoothing, not from the data. The plain lesson for a spreadsheet user: never put irregular dates on a category axis where every gap looks the same width. Use a real date axis.

Example: three of Joe's series, three forms

Joe has three series in front of him and gives each its own form.

  • Weekly sign ups, 104 points over two years: a line without dots. Here it is raw, with nothing removed.
Line chart of 104 weekly sign up counts. Most weeks sit between 25 and 45. Each December spikes to between 136 and 155 a week, and one week in April 2024 reaches 70 after a newspaper feature. The December spikes dominate the chart. Tap or click to enlarge
  • Quarterly revenue, eight amounts: bars from zero, because Maya compares the amounts.
  • The number of wholesale cafés, counted only when the sales lead audits the list, on five dates spread unevenly through 2024: dots placed at their true dates on a date axis, joined by a thin line with the caption "lines are a guide to the eye". Spacing the five counts evenly would make a three month gap look the same as a five week one.

The raw weekly line already shows the problem Maya has. The two December spikes, around 136 to 155 sign ups a week, dominate everything. The rest of each year is squeezed into a band between 25 and 45, where any change is hard to see. Notice also the single spike in April 2024: one week of 70 sign ups. Hold on to it, because it returns in the smoothing section.

The shape of the box changes the story

The same line drawn in a tall, narrow box looks dramatic, and drawn in a short, wide box looks calm. Wilke notes that when the two axes measure different units you may stretch either one and the chart stays valid, so the choice is about which differences you want the reader to notice5. Unwin warns that aspect ratio has a surprisingly strong effect, especially for time series: widen and flatten to show gradual change, narrow and heighten to show dramatic change1.

There is research behind a sensible default. William Cleveland, Marylyn McGill and Robert McGill studied how people judge slopes and proposed "banking to 45 degrees": choose the aspect ratio so that the important line segments sit, on average, around 45 degrees, where differences in slope are easiest to tell apart6. Jeffrey Heer and Maneesh Agrawala extended the idea in 2006 and showed that one series can need several aspect ratios: a wide one to see fast seasonal wiggles, a less wide one to see the slow trend7.

Example: one series, two boxes

Joe draws the weekly line twice. In a wide strip, about six times as wide as it is tall, the shape of each December stands out: a fast climb from late November, a peak in the second week of December, a collapse in the week after the last posting date. In a box closer to square, he draws the smoothed trend instead, and its slope across 2024 becomes readable: up in the first half, level in the second. Each box banks a different part of the story to an angle the eye can judge, and for Maya's question the trend box is the one that matters.

Smoothing: a moving average keeps what is slower than its window

Smoothing replaces each point with a summary of the points around it, so that slow movements stay and fast ones fade. The simplest smoother is the moving average, and Wilke describes it as a window that slides along the series one step at a time, averaging what it covers8. The decision that matters most is the width of the window, because the window sets which fluctuations survive: anything much faster than the window is averaged away, anything much slower stays.

A trailing moving average over the last kk weeks is:

yˉt=1k∑i=0k−1yt−i\bar{y}_t = \frac{1}{k} \sum_{i=0}^{k-1} y_{t-i}

Here yˉt\bar{y}_t is the smoothed value for week tt, yt−iy_{t-i} is the raw value ii weeks before week tt (so yty_{t} is this week and yt−1y_{t-1} last week), kk is the window, the number of weeks averaged, and the 1k\frac{1}{k} divides the sum by the number of weeks, which makes it an ordinary mean of the last kk values. See Foundations: the mean if the summation sign is new.

Three properties follow, and Wilke spells out each one.

  • Where you plot it matters. Financial charts plot each average at the end of its window, which makes the smooth line lag behind the data, more so the wider the window. Statisticians plot it at the centre of the window, which lines up with the data but leaves the last few points without a value.
  • The ends go missing. A centred average of 5 weeks has no value for the first two and the last two weeks. The wider the window, the more is lost, and it is lost precisely at the recent end that the founder cares about.
  • A single odd point echoes. Every point in the window counts equally, so one unusual week lifts the average for as many weeks as the window is wide, then drops out with a jolt.

Example: the April spike in a four week average

Joe takes the 2024 weekly sign ups for weeks 11 to 19: 43, 39, 41, 37, 70, 40, 41, 38, 39. Week 15 is the spike.

The four week trailing average ending in week 14 uses weeks 11 to 14: yˉ14=14(43+39+41+37)=1604=40.0\bar{y}_{14} = \frac{1}{4}(43 + 39 + 41 + 37) = \frac{160}{4} = 40.0.

Ending in week 15, the spike enters: yˉ15=14(39+41+37+70)=1874=46.75\bar{y}_{15} = \frac{1}{4}(39 + 41 + 37 + 70) = \frac{187}{4} = 46.75.

Ending in week 18, it is still inside: yˉ18=14(70+40+41+38)=1894=47.25\bar{y}_{18} = \frac{1}{4}(70 + 40 + 41 + 38) = \frac{189}{4} = 47.25.

Ending in week 19, it has left: yˉ19=14(40+41+38+39)=1584=39.5\bar{y}_{19} = \frac{1}{4}(40 + 41 + 38 + 39) = \frac{158}{4} = 39.5.

One good week has produced a four week plateau at about 47 and then a sudden drop of nearly eight. A reader who sees only the smoothed line would think something happened in week 19. Nothing did. The spike simply left the window.

Two remedies. A running median, which takes the middle value instead of the mean, ignores a lone outlier: the median of weeks 13 to 17 (41, 37, 70, 40, 41) is 41, where the centred mean is 229/5=45.8229 / 5 = 45.8. And a robust smoother such as LOESS downweights points that sit far from the rest, as the next section explains.

To see the whole year without the December shock, Joe uses a far wider window: the trailing 52 week average, often called a rolling annual average. Each value averages one full year, so every December is always inside the window exactly once and the season cancels. It runs from 38.3 sign ups a week at the end of 2023 to 44.0 at the end of 2024, a rise of 44.0/38.3−1=0.14944.0 / 38.3 - 1 = 0.149, or 15%. The price is lag. A trailing 52 week average describes the year that ended this week, so its centre of gravity is half a year ago. It confirms that 2024 beat 2023. It cannot tell Maya what happened since the summer.

LOESS, splines and the defaults you never chose

William Cleveland's 1979 paper introduced robust locally weighted regression, now known as LOESS or lowess9. Instead of a flat average, it fits a small straight line or curve to the points near each position, gives the nearest points the most weight, and then reweights to reduce the pull of outliers. Wilke points out the practical advantages: the curve is smoother than a moving average and it covers the whole range of the data, ends included8. Splines and generalised additive models (GAMs) are the other common family.

Wilke's warning deserves more attention than it gets: the same data can be smoothed in many ways, and the result depends on settings your software chose for you, especially near the ends of the data8. Adrian Bowman, in the Handbook chapter on smoothing, recommends looking at a range of smoothing levels before settling on one, and adds bands that show how variable the estimate is10. My rule for business charts follows from both: if you show a smooth, state the method and the window in the caption, and check that your conclusion survives a narrower and a wider setting. If it does not, the conclusion belongs to the smoother, not to the data.

This is an old idea, and a good one

Smoothing to see a trend is older than computers. Michael Friendly's history chapter in the Handbook describes how the statistician Arthur Bowley, early in the twentieth century, plotted British and Irish export values with moving averages of several widths to settle a dispute about whether trade had stalled, and how the longer averages revealed a trade cycle that tables of averages had hidden11. The question under the wiggles has not changed since.

Seasonality: compare like with like

Most business series repeat a pattern every year. Gifts in December, holidays in August, tax deadlines in January. A seasonal pattern is not noise and not trend. It is the third component, and the simplest way to handle it is to compare each period with the same period in an earlier year, which cancels the season because both sides contain it.

There are two charts for this, and they answer slightly different questions.

  • Overlaid years. Put the months (or weeks) along the x axis and draw one line per year. Each year's January sits at the same horizontal position, so the eye compares positions on a common scale, the most accurate judgement in Cleveland and McGill's ranking of graphical tasks12. The season shows as the shape all lines share. Growth shows as the gap between them.
  • Year over year change. Compute the percentage change of each period against the same period a year earlier and show it as bars around a zero line. This removes the season entirely and puts growth itself on the axis. It is the honest answer to "are we growing?", period by period.

Two cautions. Align like with like: compare ISO week 50 with ISO week 50, and know that Christmas Day falls on a different weekday every year, while Easter moves between March and April and can shift a whole month's numbers. And a year over year percentage on a small base swings wildly, so for small series show the absolute numbers next to it.

Example: two years on one chart, then the change itself

Joe first overlays the two years by month.

Two lines, one per year, January to December. Both share the same shape: a summer low in July and August, about 116 in 2023 and 135 in 2024, and a December peak of 455 in 2023 and 489 in 2024. The gap between the years is wide in the first half and narrow in the second. Tap or click to enlarge

The shapes match almost exactly: a gentle spring, the summer dip in July and August, the climb through autumn, the December wall. The gap between the lines is wide in the first half of the year and narrow in the second. That is already half of Maya's answer, visible without a single calculation.

Then Joe computes the change for each month. For January: (164−140)/140=0.171(164 - 140) / 140 = 0.171, so up 17.1%. For December: (489−455)/455=0.075(489 - 455) / 455 = 0.075, so up 7.5%. He does the same for all twelve.

Twelve bars of year over year percentage change. January 17.1%, February 18.8%, March 19.2%, April 40.3% (newspaper feature), May 20.3%, June 19.1%, July 17.2%, August 14.5%, September 12.5%, October 10.4%, November 8.7%, December 7.5%. Growth is falling through the second half. Tap or click to enlarge

Now the story is unmistakable. The first half of 2024 grew by about a fifth on 2023: across January to June, (1,026−837)/837=0.226(1{,}026 - 837) / 837 = 0.226, or 22.6%. The second half grew by (1,279−1,159)/1,159=0.104(1{,}279 - 1{,}159) / 1{,}159 = 0.104, or 10.4%, and the monthly growth rate fell steadily from 17.2% in July to 7.5% in December. April stands out at 40.3%, and Joe knows why: the one week spike from a feature in a national newspaper's food pages, an event, not a trend. Growth is real, and it is slowing.

Take the season out: decomposition and seasonal adjustment

Wilke describes the next step as separating a time series into components that add back up to the original: a long term trend, a repeating seasonal pattern, and a remainder that holds noise and one off events8. Removing just the trend is called detrending, and it makes unexpected movements stand out. Removing the season is called seasonal adjustment, and it is how official statistics are published. The Office for National Statistics explains its purpose as removing systematic calendar related effects so that consecutive periods can be compared13, and Eurostat's guidelines set out the shared practice across European statistical offices14.

The best known general method is STL, seasonal and trend decomposition using LOESS, published by Robert Cleveland, William Cleveland, Jean McRae and Irma Terpenning in 199015. Rob Hyndman and George Athanasopoulos summarise why analysts reach for it: it handles any seasonal period, not only months and quarters, lets the seasonal pattern change slowly over time, lets you control how smooth the trend is, and can be made robust so that an outlier ends up in the remainder instead of bending the trend16. They also note its limits: it does not handle trading day effects on its own, and it is additive. For a series whose seasonal swing grows with the level, which is common in sales, take logarithms first, decompose, and transform back, which makes the decomposition multiplicative.

The same authors give the classic moving average recipe for the trend: for monthly data with a yearly season, a centred "2 by 12" moving average gives every calendar month equal weight, so the season averages out17. That is the logic behind the rolling annual average above, done properly in the centre instead of at the end.

Example: Ridgeway's December, seasonally adjusted

Joe has four years of sign up history, from 2021 (derived for this example), enough to estimate stable seasonal factors with STL on the log scale. The factors say how far each month sits above or below the trend. December's factor is 2.60, July's and August's 0.70, January's 0.90 and November's 1.00.

Seasonally adjusting a month means dividing the raw count by its factor. For December 2024: 489/2.60=188489 / 2.60 = 188. For November 2024: 188/1.00=188188 / 1.00 = 188. For July 2024: 136/0.70=194136 / 0.70 = 194. For December 2023: 455/2.60=175455 / 2.60 = 175.

MonthRaw sign upsSeasonal factorSeasonally adjusted
December 20234552.60175
June 20241560.80195
July 20241360.70194
November 20241881.00188
December 20244892.60188
Two lines over 24 months, January 2023 to December 2024. The raw line peaks at 455 in December 2023 and 489 in December 2024. The seasonally adjusted line rises from 156 to 195 by May and June 2024, then drifts down to 188 in December 2024. April 2024 shows a one off bump to 224 from a newspaper feature. Tap or click to enlarge

The adjusted line is the trend plus the remainder. It climbs through 2023 and the first half of 2024, from 156 to 195, peaks in May and June, and then drifts down to 188. December 2024's 489 sign ups were exactly what a business at that level would expect in December. The April bump to 224 is the remainder: the newspaper week, sitting where an event should sit, outside the trend.

So the record December was not growth. It was the season, arriving on a trend that had stopped rising in June.

Absolute change, percentage change and the log scale

A change can be told as a difference ("up 34 sign ups") or as a ratio ("up 7.5%"). Both are true, and they answer different questions. The absolute change tells you how much the business gained in units that pay the bills. The percentage change, Δ%=(vnew−vold)/vold×100\Delta\% = (v_{\text{new}} - v_{\text{old}}) / v_{\text{old}} \times 100, tells you the rate, which is what you need to compare things of very different sizes. The Foundations section on percentages works through the formula and the classic trap of percentage points.

On a time chart, the choice of axis decides which one the reader sees. On an ordinary linear axis, equal vertical distances mean equal absolute changes, so a large series that grows 10% looks like it is soaring while a small one that grows 30% looks flat. On a logarithmic axis, equal vertical distances mean equal percentage changes, and a series that grows at a constant rate draws a straight line. Wilke uses exactly this to test for exponential growth: if the line straightens on a log axis, the growth rate is constant, and he advises fitting a straight line to the logged data instead of a curve to the raw data8. The scales and axes chapter explains how to read a log axis.

Example: three revenue streams, two ways of telling it

Ridgeway's 2024 revenue of £2.4 million splits into subscriptions £1.08 million (45%), one off online orders £0.60 million (25%) and wholesale £0.72 million (30%). For this example, 2023 was £0.94 million, £0.62 million and £0.64 million, £2.20 million in total.

Stream20232024Absolute changePercentage change
Subscriptions£0.94m£1.08m+£140k+15%
One off orders£0.62m£0.60m£20k less3% less
Wholesale£0.64m£0.72m+£80k+12.5%
Total£2.20m£2.40m+£200k+9%

For subscriptions: (1.08−0.94)/0.94=0.149(1.08 - 0.94) / 0.94 = 0.149, so 15%. For one off orders: (0.60−0.62)/0.62=−0.032(0.60 - 0.62) / 0.62 = -0.032, so a fall of about 3%. Told in pounds, subscriptions added £140k, almost twice wholesale's £80k. Told in percentages, the two grew at similar rates, 15% and 12.5%. Both views are needed. Maya decides where to spend effort on the pounds and judges momentum on the percentages.

Slopegraphs: two moments in time, many categories

When you have exactly two points in time and several categories, a full line chart wastes space and a grouped bar chart makes the reader compare pairs of bars one at a time. The slopegraph solves this: put each category's value at the first time on the left, its value at the second time on the right, and join each pair with a line. The slope shows the direction and size of the change at a glance. Knaflic recommends it for two periods and warns that it fails when many lines overlap, in which case she highlights one line and greys the rest2. Wilke adds that it handles a third time point well, which shows whether a change sped up or slowed down, and credits Edward Tufte's The Visual Display of Quantitative Information with the first example of the form, before it had its name18.

Example: the revenue slopegraph

Joe draws the three streams from 2023 to 2024.

Slopegraph of three revenue streams. Subscriptions rise from £940k to £1,080k, 15%. Wholesale rises from £640k to £720k, 12.5%. One off orders fall from £620k to £600k, about 3%. Tap or click to enlarge

Two lines climb, one dips slightly. Because the vertical axis is linear and starts from zero, the slopes show absolute change: subscriptions climb most steeply. The labels at each end carry the values, so no legend is needed. If Maya wanted rates instead of amounts, Joe would draw the same slopegraph on a log axis, where equal slopes would mean equal percentage growth and the subscription and wholesale lines would run almost parallel.

Indexing: put different sized series on one footing

Indexing rescales a series so that a chosen base period equals 100 and every other value is expressed relative to it:

It=vtvbase×100I_t = \frac{v_t}{v_{\text{base}}} \times 100

ItI_t is the index at time tt, vtv_t is the actual value at time tt, and vbasev_{\text{base}} is the value in the base period you choose to call 100. An index of 120 means 20% above the base. The Foundations section on indexing works through it step by step.

Indexing lets you compare the growth of series that live on completely different scales, such as a large plan and a small plan, or sign ups and revenue. Wilke shows indexed stock prices and recommends a thin reference line at 100, so the reader can see at every point whether a series is above or below its starting level19. Two choices need care. The base period must be typical, because a base that happens to be a peak makes everything after it look like decline. And the reader must be told what the base is, in the title or the axis label.

Example: which plan carries December?

Joe splits sign ups by plan. In 2023 Explorer averaged 100 sign ups a month and Usual 66 (derived for this example). He indexes each plan's 2024 months to its own 2023 monthly average. For Explorer in December 2024, with 361 sign ups: I=361/100×100=361I = 361 / 100 \times 100 = 361. For Usual in December, with 128 sign ups: I=128/66×100=194I = 128 / 66 \times 100 = 194.

Two indexed lines across 2024. Usual runs from 108 in January to 124 in November and 194 in December. Explorer runs from 92 in January to 106 in November, then jumps to 361 in December. The December wave is mostly Explorer. Tap or click to enlarge

Most of the year the two lines run close together, Usual slightly higher. In December they split apart: Explorer jumps to three and a half times its normal month, Usual to about twice. The December wave is mostly Explorer, which is the natural gift plan, and Explorer is the plan on the fast treadmill, losing 7.8% of its subscribers every month. That does not yet answer Maya's standing question, "should we push Explorer harder, or is it costing us customers?", but it tells Joe exactly where to look next: what happens to December's Explorer sign ups in the following months.

Small multiples when one chart has too many lines

Put five or more series on one time chart and the lines tangle. The alternative is small multiples: the same small chart repeated for each series, arranged in a grid. Wilke notes that Tufte popularised the term and that Cleveland's trellis displays rest on the same idea, and he sets two rules20. Every panel uses the same axis ranges, because readers assume they do, and a panel with its own scale exaggerates small changes. And the panels follow a meaningful order: by time, by size, or by a natural sequence, never alphabetically by accident. If one panel truly needs its own scale, the caption must say so.

Example: wholesale orders by region

Ridgeway's 140 wholesale cafés split, for this example, into six regions: London 34, the South East 30, the Midlands 22, the North 24, the South West 18, and Scotland and Wales 12. Joe wants monthly wholesale orders for each region across 2024.

On one chart, six lines would cross and recross. As small multiples, six small panels sorted by number of cafés, largest first, each with the same vertical axis, show at once that London and the South East carry the volume and that all six share the same August dip when cafés close for holidays. With free axes, the small Scotland and Wales panel would have looked as volatile as London's, which would be false. Joe keeps the shared axis and adds a note in the caption.

Two measures over time: connected scatter plots and dual axes

Sometimes the question is how two measures move together over time, such as sign ups and churn. There are three ways to draw it, and experts disagree about one of them.

Two charts stacked, sharing the time axis. Each measure gets its own panel and its own vertical axis, aligned on the same horizontal time axis. Knaflic recommends this as the alternative to a second y axis2. It is the safest default.

A connected scatter plot. Plot one measure against the other and join the points in time order. Wilke shows how it reveals cycles that two separate line charts hide, as loops and spirals, and warns that it needs date labels or a colour gradient to show direction, or it becomes a scribble3. Steve Haroz, Robert Kosara and Steven Franconeri tested it and found readers confused order and direction more often than with line charts, but found it more engaging, which Wilke reads as a reason to use it to draw readers into a story, with care21.

A dual axis chart. Two series on one chart, one read against the left axis and one against the right. Here the debate is real. Against: Knaflic advises avoiding the secondary axis because readers struggle to know which line belongs to which axis2, and Lisa Charlotte Muth at Datawrapper showed in 2018 that the two scales are arbitrary, so whoever draws the chart can make the lines cross, converge or diverge at will, and readers instinctively compare the heights of lines that share no scale22. For: Friendly's history shows William Playfair using two vertical scales to good effect in the eighteenth century, and calls the device a sin only because the scales can be jiggled11. Muth herself makes one exception: a second axis that shows the same series in another unit, such as Celsius and Fahrenheit, cannot mislead, because there is only one line.

My view: for a business audience, avoid dual axes for two different measures. The trick that makes the chart look like a relationship is too easy to pull, even by accident. Use stacked panels by default, index both series to 100 when you want to compare growth, and use a labelled connected scatter plot when the loop is the story. Keep a second axis only for a unit conversion of the same line.

Example: the January hangover

Joe wants to show Maya how December's sign ups feed January's cancellations. He has, for this example, monthly sign ups and churn for the turn of the year.

MonthSign upsMonthly churn
December 20234554.0%
January 20241645.1%
February 20241585.6%
March 20241805.0%
April 20242024.1%

A dual axis chart would let him scale churn so that it seems to rise exactly as sign ups fall, or so that the two lines barely touch, depending on where he sets the right axis. Instead he draws a connected scatter plot with sign ups across and churn up, each point labelled with its month. The path runs far to the right in December, then swings back left and climbs in January and February, then drifts down again by April. The loop shows a sequence: a wave of new subscribers, then two months later a wave of cancellations. It is a pattern worth investigating, not yet a cause, and investigating it is the job of the exploration chapter later in this series.

Calendar heatmaps for daily rhythms

Daily data has two clocks at once: the day of the week and the season of the year. A long daily line chart blurs both. Jarke van Wijk and Edward van Selow proposed in 1999 laying the days out like a calendar, weeks as columns and weekdays as rows, and colouring each cell by its value23. A calendar heatmap shows weekday patterns, public holidays, and one off days in a single picture. Jank and colleagues cite it in the Handbook among the methods that respect the special structure of time4. The colour scale needs the care described in the chapter on colour in charts: a sequential scale for counts, and a legend that says what the darkest cell means.

Example: one off orders by day

Ridgeway's one off online orders average about 40 a day (derived: £600,000 a year at a mean order of £41 is about 14,600 orders, or 40 a day). Joe draws 2024 as a calendar heatmap. The weekday rows show a clear rhythm, summarised here:

WeekdayAverage orders
Monday49
Tuesday45
Wednesday42
Thursday40
Friday37
Saturday31
Sunday36

Monday is the busiest day, as people order what they thought about over the weekend, and Saturday the quietest. Across the year, bank holidays show as pale cells in otherwise dark Monday rows, Black Friday as one dark cell in late November, and the days after the last Christmas posting date as a pale band. A line chart of 366 days would show the same numbers and none of the rhythm.

Annotate the events, or the reader will invent them

A spike without a label is an invitation to guess. Unwin notes that annotation is especially useful for marking events in time series, as Playfair already did, and should be used sparingly1. Knaflic's model of an annotated line graph pushes everything to grey except the line, the title and short dated notes, and marks with a data point only the moments the notes refer to2. My rule: annotate only events that explain a visible movement or matter for the decision, in plain words next to the point. The chapter on how people read charts explains why a single contrasting mark draws the eye before anything else.

Example: two notes on the weekly line

Joe adds two annotations to the 2024 weekly line. At week 15: "Feature in a national newspaper's food pages, 70 sign ups in one week". At week 51: "Last posting date for Christmas, 18 December". The first stops anyone from reading April as a turning point. The second explains why the December peak collapses a week before the year ends. He adds nothing else. A note on every bump would turn the chart back into noise.

Answering Maya: from the raw line to a decision

Joe now has everything he needs. He brings Maya four charts, in this order, each answering one comparison.

  1. The raw weekly line, to show what she has been looking at and why it misleads: December dwarfs the rest of the year.
  2. The two years overlaid, to show the season is the same every year and the gap between the years is real.
  3. The year over year bars, to show the growth itself: about 22.6% in the first half of 2024, falling to 7.5% by December.
  4. The seasonally adjusted line, to show the direction: up until June, flat to slightly down since.

His one sentence answer: "Sign ups grew by about 15% in 2024 compared with 2023, but all of that growth came in the first half. Since June the underlying trend has been flat, and December's record is the normal Christmas wave on top of a flat line. Most of that wave was Explorer, the plan that loses the most subscribers." That last point is the bridge to Maya's standing question, and it sets up the next piece of work. What happens next year is a forecast, which is a separate craft with its own way of showing uncertainty, and I leave it for another day.

The choice of chart for each question follows a short path, which Joe now uses for every time chart.

Tap or click to enlarge

If you want a second pair of eyes on your own monthly numbers, this is the kind of work I do in Data Science engagements, and it ties closely to the measurement in pirate metrics (AARRR): a growth bottleneck often shows first as a trend that has quietly gone flat under a loud season.

Conclusion

A time chart is a comparison, so start by naming it: against last period, against the same period last year, or against the trend. Then match the form to the data: a line for dense regular series, dots at true dates for sparse or irregular ones, bars for a few amounts, a shape of box that banks the important slopes to a readable angle. Smooth with a window chosen on purpose, say what you did, and check that the conclusion survives a different setting. Compare seasons with themselves, through overlaid years and year over year change, and take the season out with a decomposition when the question is direction. Tell changes in both units and rates, use slopegraphs for two moments and indexing for different sized series, small multiples instead of tangled lines, and stacked panels or a connected scatter plot instead of a second axis. Label the events that matter and nothing else.

Do that, and the founder's question gets a real answer. For Ridgeway it was not "yes" and not "no". It was "growing, slowing, and the December record is the season". That is an answer Maya can act on.

If your own monthly numbers have a loud season and you are not sure what the trend underneath is doing, book the free workshop: we separate the two together on your data, and the first two weeks of work are on me.

Sources

  1. 1.

    Antony Unwin, "Good Graphics?", in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, chapter II.2, pp. 67 to 68 (annotation, legends, aspect ratio) and pp. 74 to 75 (time series), DOI 10.1007/978-3-540-33037-0, https://doi.org/10.1007/978-3-540-33037-0

  2. 2.

    Cole Nussbaumer Knaflic, Storytelling with Data: A Data Visualization Guide for Business Professionals, Wiley, 2015, chapter 2 (line graphs and slopegraphs pp. 45 to 50, the zero baseline pp. 50 to 53, secondary y axis pp. 66 to 68) and chapter 6 (annotated line graph pp. 154 to 156), https://www.storytellingwithdata.com/books

  3. 3.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 13, "Visualizing time series and other functions of an independent variable", https://clauswilke.com/dataviz/time-series.html

  4. 4.

    Wolfgang Jank, Galit Shmueli, Catherine Plaisant and Ben Shneiderman, "Visualizing Functional Data with an Application to eBay's Online Auctions", in Handbook of Data Visualization, Springer, 2008, chapter IV.5, pp. 874 to 882, DOI 10.1007/978-3-540-33037-0, https://doi.org/10.1007/978-3-540-33037-0

  5. 5.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 3, "Coordinate systems and axes", https://clauswilke.com/dataviz/coordinate-systems-axes.html

  6. 6.

    William S. Cleveland, Marylyn E. McGill and Robert McGill, "The Shape Parameter of a Two Variable Graph", Journal of the American Statistical Association 83 (402), 1988, pp. 289 to 300, DOI 10.1080/01621459.1988.10478598, https://doi.org/10.1080/01621459.1988.10478598

  7. 7.

    Jeffrey Heer and Maneesh Agrawala, "Multi Scale Banking to 45 Degrees", IEEE Transactions on Visualization and Computer Graphics 12 (5), 2006, pp. 701 to 708, DOI 10.1109/TVCG.2006.163, https://idl.uw.edu/papers/banking

  8. 8.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 14, "Visualizing trends", https://clauswilke.com/dataviz/visualizing-trends.html

  9. 9.

    William S. Cleveland, "Robust Locally Weighted Regression and Smoothing Scatterplots", Journal of the American Statistical Association 74 (368), 1979, pp. 829 to 836, DOI 10.1080/01621459.1979.10481038, https://doi.org/10.1080/01621459.1979.10481038

  10. 10.

    Adrian W. Bowman, "Smoothing Techniques for Visualisation", in Handbook of Data Visualization, Springer, 2008, chapter III.9, pp. 494 to 499, DOI 10.1007/978-3-540-33037-0, https://doi.org/10.1007/978-3-540-33037-0

  11. 11.

    Michael Friendly, "A Brief History of Data Visualization", in Handbook of Data Visualization, Springer, 2008, chapter II.1, p. 24 (Playfair's two scales) and pp. 37 to 38 (Bowley's moving averages), DOI 10.1007/978-3-540-33037-0, https://doi.org/10.1007/978-3-540-33037-0

  12. 12.

    William S. Cleveland and Robert McGill, "Graphical Perception: Theory, Experimentation, and Application to the Development of Graphical Methods", Journal of the American Statistical Association 79 (387), 1984, pp. 531 to 554, DOI 10.1080/01621459.1984.10478080, https://doi.org/10.1080/01621459.1984.10478080

  13. 13.

    Office for National Statistics, "Seasonal adjustment", methodology topics and statistical concepts, https://www.ons.gov.uk/methodology/methodologytopicsandstatisticalconcepts/seasonaladjustment

  14. 14.

    Eurostat, ESS guidelines on seasonal adjustment, 2015 edition, Publications Office of the European Union, 2015, https://ec.europa.eu/eurostat/web/products-manuals-and-guidelines/-/ks-gq-15-001

  15. 15.

    Robert B. Cleveland, William S. Cleveland, Jean E. McRae and Irma Terpenning, "STL: A Seasonal Trend Decomposition Procedure Based on Loess", Journal of Official Statistics 6 (1), 1990, pp. 3 to 73, https://www.scb.se/contentassets/ca21efb41fee47d293bbee5bf7be7fb3/stl-a-seasonal-trend-decomposition-procedure-based-on-loess.pdf

  16. 16.

    Rob J. Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, 3rd edition, OTexts, 2021, section 3.6, "STL decomposition", https://otexts.com/fpp3/stl.html

  17. 17.

    Rob J. Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, 3rd edition, OTexts, 2021, section 3.3, "Moving averages", https://otexts.com/fpp3/moving-averages.html

  18. 18.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 12 (paired data and slopegraphs) and the annotated bibliography entry on Tufte, The Visual Display of Quantitative Information, 2nd edition, Graphics Press, 2001, https://clauswilke.com/dataviz/visualizing-associations.html

  19. 19.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 23, "Balance the data and the context", https://clauswilke.com/dataviz/balance-data-context.html

  20. 20.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 21, "Multipanel figures", https://clauswilke.com/dataviz/multi-panel-figures.html

  21. 21.

    Steve Haroz, Robert Kosara and Steven L. Franconeri, "The Connected Scatterplot for Presenting Paired Time Series", IEEE Transactions on Visualization and Computer Graphics 22 (9), 2016, pp. 2174 to 2186, DOI 10.1109/TVCG.2015.2502587, https://doi.org/10.1109/TVCG.2015.2502587

  22. 22.

    Lisa Charlotte Muth, "Why not to use two axes, and what to use instead", Datawrapper blog, 8 May 2018, https://www.datawrapper.de/blog/dualaxis

  23. 23.

    Jarke J. van Wijk and Edward R. van Selow, "Cluster and Calendar based Visualization of Time Series Data", Proceedings of the IEEE Symposium on Information Visualization (InfoVis 99), 1999, pp. 4 to 9, DOI 10.1109/INFVIS.1999.801851, https://doi.org/10.1109/INFVIS.1999.801851

Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.

Donate to Shelter