Mapping data to visuals: scales, axes and coordinate systems

TL;DR

Difficulty: Intermediate

Every chart is a translation built from a grammar: data, mappings, marks, scales, coordinates and guides.

  • The scale decides what counts as the same step: pounds on a linear axis, percentages on a log axis. Choose with the equal step test.
  • Ridgeway Coffee's five years of revenue look like two rockets on a linear axis and like two channels slowing down on a log axis. Both are true.
  • Bars always start at zero. A cut axis made a three to one churn gap look more than four times bigger.
  • Lines start where the decision lives: range them so the smallest change that matters is visible.
  • The shape of the box sets the slope. Two independent measures never share two axes: index them or stack them.

Between your spreadsheet and your chart, dozens of decisions get made, and most of them by software defaults. This chapter opens that box: the grammar behind every chart, the scales and axes that change its message most, and a simple test for choosing them, all worked through on one coffee roaster's numbers.

The question behind this chapter

You have a column of numbers and a chart button. You press it, and a picture appears. Somewhere between the spreadsheet and the picture, dozens of decisions were made for you: which number goes up the side, where the side starts, how tall the box is, whether one step up the axis means "plus £100k" or "times ten". Each of those decisions changes what a reader sees. Most of the time nobody chose them. The software did.

This chapter opens the box. It explains what actually happens when data becomes a chart, using the idea of a grammar of graphics, and then works through the choices that change the message most: the type of data you have, the visual channel you put it on, the scale that translates numbers into positions, the coordinate system, the shape of the chart, where the axis starts, and whether a second axis is ever a good idea.

It is the third chapter of the series. The first, data storytelling starts before the chart, is about knowing your audience and the one point you want to make. The second, how people read charts, explains what the eye does well and badly. This one is the bridge between them: the mechanics that decide whether your point survives the trip from table to picture.

Example: the roaster in Oxford and Joe's first chart

Throughout the series I use one invented business. Ridgeway Coffee is a speciality roaster in Oxford (ridgewaycoffee.example). It sells one off orders online, coffee subscriptions, and wholesale to 140 cafés. The founder is Maya, the analyst is Joe. Revenue is £2.4 million a year: subscriptions 45% (£1.08 million), one off online orders 25% (£600k) and wholesale 30% (£720k). Gross margin is 48%. There are 3,600 active subscribers on two plans, "Usual" (the same coffee every time, about 70% of subscribers) and "Explorer" (a different coffee every time, about 30%). Average monthly churn is 4.2%: Usual 2.6%, Explorer 7.8%. Maya's standing question is: "Should we push Explorer harder, or is it costing us customers?"

For this chapter Joe has pulled five years of revenue by channel. The 2024 figures are the business's real totals. The earlier years are derived for this example.

YearSubscriptionsOne off ordersWholesaleTotal
2020£270k£522k£90k£882k
2021£432k£612k£180k£1,224k
2022£642k£582k£330k£1,554k
2023£858k£588k£522k£1,968k
2024£1,080k£600k£720k£2,400k

Joe's first instinct is to select the table and press "line chart". Everything in this chapter is about what that button decided for him.

The short answer: every axis decides what counts as the same step

If you remember one idea from this chapter, make it this one. Every scale on a chart quietly answers one question: what counts as the same step?

  • On a linear axis, the same distance always means the same difference. Going from £100k to £200k takes as much space as going from £900k to £1,000k. The axis says: "a pound is a pound."
  • On a logarithmic (log) axis, the same distance always means the same ratio. Going from £100k to £200k takes as much space as going from £500k to £1,000k, because both are a doubling. The axis says: "a percentage is a percentage."
  • On a bar chart, the length from zero is part of the message. The axis says: "twice as long means twice as much."

So before you choose a scale, ask what your reader should treat as the same size of change. I call this the equal step test. If Maya thinks in pounds ("wholesale added £198k last year"), linear is honest. If she thinks in growth ("wholesale grew 38%"), linear quietly misleads her and log tells the truth. Most chart arguments, about log axes, zero baselines and aspect ratios, become simple once you have answered that one question.

Example: £200k or 30%?

In 2024 subscriptions grew from £858k to £1,080k, an increase of £222k. Wholesale grew from £522k to £720k, an increase of £198k. In pounds, the two channels added almost the same amount.

In percentages they did not. The growth rate gg of a channel from one year to the next is

g=xt−x‘t−1‘x‘t−1‘g = \frac{x_t - x_{`t-1`}}{x_{`t-1`}}

where xtx_t is the revenue in year tt and xt−1x_{t-1} the revenue in the year before. Foundations: percentages

For subscriptions, g=(1,080−858)/858=0.259g = (1{,}080 - 858) / 858 = 0.259, so 25.9%. For wholesale, g=(720−522)/522=0.379g = (720 - 522) / 522 = 0.379, so 37.9%. Wholesale grew about one and a half times as fast.

A linear chart shows the first fact: two lines rising by roughly the same height. A log chart shows the second: the wholesale line climbing more steeply. Neither chart is wrong. They answer different questions, and the equal step test tells Joe which one Maya is asking.

A chart is a sentence with a grammar

The most useful idea in modern charting comes from Leland Wilkinson's The Grammar of Graphics (first edition 1999, second edition 2005)1. Wilkinson argued that every statistical chart, however different it looks, is built from the same small set of parts, the way every sentence is built from nouns, verbs and grammar. Hadley Wickham turned that idea into the layered grammar behind the R package ggplot2 (2010)2, and Claus Wilke's Fundamentals of Data Visualization builds its first chapters on it3.

In plain words, a chart is made of:

  • Data: the table, one row per thing you measured.
  • Aesthetic mappings: which column goes to which visual property. Wilke calls these properties aesthetics: position, shape, size, colour, line width and line type3.
  • Geometric objects: the marks that carry the aesthetics, such as points, lines, bars or areas.
  • Scales: the dictionaries that translate a data value into an aesthetic value, such as "£500k sits 40% of the way up" or "Explorer is drawn in teal".
  • A coordinate system: how the position scales are arranged in space, usually a horizontal x axis at right angles to a vertical y axis.
  • Guides: the axes and legends that let the reader translate back from picture to number.
  • Optionally, facets: the same chart repeated for each group, side by side.

Why this matters: once you see a chart as separate choices, you can change one without touching the others. A bad chart is rarely bad everywhere. Usually one mapping or one scale is wrong, and the grammar tells you which.

Example: Joe's revenue chart, written as a grammar

Joe's default line chart, described in the grammar's terms:

PartJoe's choiceWho decided
DataRevenue by year and channel, 15 rowsJoe
MappingYear to horizontal position, revenue to vertical position, channel to colourThe software, from the column order
Geometric objectLines with dotsJoe pressed "line chart"
ScalesLinear y from £0k to £1,200k, years equally spacedThe software
CoordinatesCartesian, chart box wider than tallThe template
GuidesY axis with gridlines, legend at the bottomThe template

Joe made two of the six decisions. The rest came from defaults. The rest of this chapter goes through those defaults one by one.

Know what kind of data you have

Before you map anything, you need to know what kind of values each column holds, because some visual channels can carry only some kinds. Wilke sorts the common types into six3, building on the classic distinction between nominal, ordinal, interval and ratio scales that the psychologist S. S. Stevens set out in 19464. Wilke's six types are these.

  • Quantitative continuous: any value in between is possible, such as revenue or delivery time in hours.
  • Quantitative discrete: counted in whole units, such as bags per order or number of cafés.
  • Categorical unordered (also called nominal, or a factor): groups with no natural order, such as plan (Usual, Explorer) or channel.
  • Categorical ordered (ordinal): groups with a natural order but no fixed distance between them, such as roast level (light, medium, dark) or a satisfaction rating.
  • Dates and times: ordered and usually continuous, with their own calendar quirks (months have different lengths).
  • Text: free form words, which a chart can only show after you turn them into categories or counts.

The reason this matters is simple. If you map an unordered category to something the eye reads as "more" or "less", such as size or a light to dark colour ramp, the reader will see an order that is not there. If you map an ordered category to unrelated colours, the reader loses the order that is there.

Example: the columns in Ridgeway's order export

Joe's order export has these columns. The table shows the type and the channels that suit it.

ColumnData typeGood channelsAvoid
Order value (£)Quantitative continuousPosition on a common axis, length of a barColour hue, shape
Bags per orderQuantitative discretePosition, bar lengthLine type
Plan (Usual, Explorer)Categorical unorderedPosition as separate groups, colour hue, shapeSize, a light to dark ramp
Roast level (light, medium, dark)Categorical orderedPosition in order, a light to dark rampUnrelated hues in random order
Order dateDateHorizontal position, in calendar orderColour hue
Customer commentTextCount words or tag themes first, then chart the countsAny direct mapping

Aesthetics: the channels a value can travel on

An aesthetic is any visual property you can vary to show data. Wilke's core list is position, shape, size, colour, line width and line type3. He makes one distinction that saves a lot of trouble: some aesthetics can show continuous data (position, size, colour, line width), while others can only show discrete groups (shape, line type)3. There is no shape halfway between a circle and a triangle, so shape can never show "£41.50".

The second chapter of this series explained that the eye does not read these channels equally well. Cleveland and McGill's experiments ranked position along a common scale as the most accurate, ahead of length, angle, area and colour5. Combine that ranking with the data types and you have a simple rule: put the comparison that matters most on position, and the second most important on a channel that suits its type. Colour gets its own chapter next week, so I keep it brief here.

Example: what goes where in Maya's churn chart

Maya wants to compare monthly churn for Usual and Explorer subscribers across the twelve months of 2024. There are three variables: month (a date), churn rate (quantitative continuous) and plan (categorical unordered).

  • Churn rate is the comparison that matters, so it goes on vertical position.
  • Month is ordered time, so it goes on horizontal position, in calendar order.
  • Plan is an unordered category with two levels, so it goes on colour hue, or, better still, two directly labelled lines that need no legend.

Putting churn on colour instead, as a heatmap, would be valid but would turn 2.6% against 7.8% into a judgement of shades, which the eye does badly.

Scales: the dictionary between values and marks

A scale is the rule that says which data value becomes which visual value. Wilke's key requirement is that a scale must be one to one: every data value has exactly one position, colour or shape, and every position, colour or shape means exactly one data value3. If two plans share a colour, or two values share a position, the chart becomes ambiguous.

For position scales, three practical choices matter most:

  • The range. Antony Unwin, in the Handbook of Data Visualization, warns against stretching an axis exactly from the smallest to the largest data value, because points then sit on the edge where the axis hides them. He suggests extending the scale a little beyond the data and using rounded values, unless the data has natural limits, such as 0% to 100%6.
  • The tick marks. Wilkinson proposed that good, "nice" scales are simple, have a sensible number of ticks and cover the data, and are especially nice when they include zero. Unwin notes that automatic algorithms for this are easy to outwit, so you have to check them6.
  • The order of categories. For an unordered category, the order is yours to choose. Unwin calls this "choosing an informative ordering"6: by size, by a meaningful sequence, or with the category you are talking about first.

Example: the y axis for Ridgeway's subscriber count

In 2024 the subscriber count moved between about 3,450 and 3,780. The default chart set the y axis from exactly 3,450 to 3,780, with ticks at 3,450, 3,516, 3,582 and so on. That breaks both of Unwin's points: the lowest month sits on the axis line, and nobody can read ticks at 3,516.

Joe resets it to run from 3,400 to 3,800 with ticks every 100. The lowest point now floats just above the axis, the ticks are numbers a person would say aloud, and the axis is labelled "Active subscribers (axis starts at 3,400)" so nobody mistakes it for a chart from zero. Whether a line chart may start above zero at all is a separate question, which I come to below.

Cartesian coordinates and the same units rule

Almost every business chart uses Cartesian coordinates: an x axis and a y axis at right angles, each with evenly spaced gridlines. Wilke points out two consequences that are easy to miss7.

First, when the two axes measure different things, such as years and pounds, you can stretch or squash one against the other and the chart stays valid. Which shape you choose is a storytelling decision, and I come back to it under aspect ratio.

Second, when both axes measure the same thing in the same units, the grid must be square: one unit along x must take the same space as one unit along y7. Otherwise the diagonal, which is where "equal" lives, is no longer at 45 degrees, and the reader's sense of "above the line" or "below the line" is wrong. Wilke also notes that changing units, say from pounds to euros, is a linear change, and a Cartesian chart looks identical after it as long as the axes change with it7.

Example: forecast against actual sign ups

Joe plots each month's forecast subscription sign ups (x) against the actual sign ups (y) for 2024. Both axes are "sign ups per month", so the units are the same. The average month has 200 sign ups (derived for this example), December 520 and July and August 140 each.

His software drew the chart 800 pixels wide and 400 tall, with both axes running from 0 to 600. One sign up on x is then 1.33 pixels, one sign up on y only 0.67. The diagonal "forecast equals actual" line now rises at about 27 degrees, not 45, and every month looks as if it underperformed more than it did. Joe sets the chart to a square, 500 by 500 pixels, with both axes from 0 to 600, so the diagonal sits at 45 degrees and points above it really are months that beat the forecast.

Linear or log: the same revenue tells two stories

This is the heart of the chapter, and the best place to see the equal step test at work. Here is Joe's revenue table on a linear axis.

Line chart on a linear axis, revenue in thousands of pounds. Subscriptions 270, 432, 642, 858, 1080. One off orders 522, 612, 582, 588, 600. Wholesale 90, 180, 330, 522, 720. Subscriptions and wholesale both rise steeply and by similar amounts each year from 2022. One off orders stay roughly flat. Tap or click to enlarge

What does it suggest? Wholesale and subscriptions both look like straight, steady climbs, if anything still accelerating. Wholesale looks like the rocket: it rose from almost nothing to overtake one off orders. One off orders look flat. A reader would conclude: "Two strong channels, growing at a healthy, steady pace."

Now the same numbers on a log axis.

Line chart on a logarithmic axis, revenue in thousands of pounds, gridlines at powers of ten. Subscriptions 270, 432, 642, 858, 1080. One off orders 522, 612, 582, 588, 600. Wholesale 90, 180, 330, 522, 720. On this axis both growing lines bend: their slope, the growth rate, falls every year. Wholesale rises steepest overall, a factor of 8 against a factor of 4 for subscriptions. Tap or click to enlarge

Now both growing lines bend. On a log axis, slope is growth rate, so a bending line means a falling growth rate. Wholesale grew 100%, then 83%, then 58%, then 38%. Subscriptions grew 60%, then 49%, then 34%, then 26%. The log chart says: "Both channels are still growing, but every year more slowly. Wholesale's growth rate has fallen by more than half in three years."

Both pictures are true. The linear chart answers "how many pounds did each channel add?" The log chart answers "how fast is each channel growing, and is that speeding up or slowing down?" If Maya is planning roasting capacity for next year, pounds matter and linear is right. If she is deciding where to put her marketing effort, growth rates matter and log is right.

Example: why the log axis turns ratios into distances

On a log axis, a value xx sits at a height proportional to log⁡10(x)\log_{10}(x). The vertical distance between two values aa and bb is therefore

log⁡10(b)−log⁡10(a)=log⁡10 ⁣(ba)\log_{10}(b) - \log_{10}(a) = \log_{10}\!\left(\frac{b}{a}\right)

where aa is the starting value, bb the later value, and b/ab/a the growth factor between them. Foundations: ratios and rates

Work it through for Ridgeway. Subscriptions went from £270k to £1,080k, a factor of 1,080/270=41{,}080 / 270 = 4, so the line rises log⁡10(4)=0.602\log_{10}(4) = 0.602 units. Wholesale went from £90k to £720k, a factor of 720/90=8720 / 90 = 8, so it rises log⁡10(8)=0.903\log_{10}(8) = 0.903 units, one and a half times as far. One off orders went from £522k to £600k, a factor of 1.15, so they rise just log⁡10(1.15)=0.061\log_{10}(1.15) = 0.061 units.

On the linear chart, subscriptions rose £810k and wholesale £630k, so subscriptions looked like the bigger story. On the log chart wholesale does. The equal step test decides which question Maya is asking.

How to label a log axis so nobody misreads it

Log axes are powerful and easy to misread, so the labelling has to do the work. Wilke gives three rules7:

  • Label the real values, not the logarithms. Write £100k and £1,000k on the axis, not 2 and 3. Plotting the log of the data on a linear axis is mathematically the same thing, but it makes the reader do the conversion and hides which base you used.
  • Name the variable, not its logarithm. The axis title is "Revenue (£ thousand, log scale)", not "log(revenue)".
  • Never expect a zero. Zero lies infinitely far down a log axis, so a log scale cannot show it at all. If your data contains zeros, a log axis is the wrong tool.

Wilke adds that log axes are the natural home for ratios, and that on such an axis 1 plays the role zero plays on a linear axis: the neutral middle, with "twice as much" and "half as much" the same distance on either side7. Unwin makes the same point in the Handbook: the sensible alignment value for ratios is one, not zero6. Semi log charts are not new either: Michael Friendly's history of data visualisation traces their use for percentage changes in prices back to William Stanley Jevons in the nineteenth century8.

The case against log axes is about readers, not mathematics. In an experiment during the COVID 19 pandemic, Romano and colleagues showed people the same death figures on log and linear axes. Those who saw the log version understood the course of the pandemic less accurately and made worse predictions9. Menge and colleagues found that even trained ecologists misinterpret data on log scales10.

My view: use a log axis when the question is about growth rates, ratios or values spread over two or more orders of magnitude, and when the audience reads charts often. For a general audience, a board pack or a quick update, I prefer to compute the growth rates and show them directly on a linear axis. That answers the same question without asking anyone to read a log scale.

Example: café spend against the median café

Ridgeway's 140 cafés bought £720k of coffee in 2024, an average of £5,143 each. The spend is skewed (these figures are derived for this example): the median café spends £4,200, the smallest £1,300 and the largest, a group of three cafés, £24,000. Joe wants to show each café's spend as a ratio to the median.

The smallest café sits at 1,300/4,200=0.311{,}300 / 4{,}200 = 0.31, the largest at 24,000/4,200=5.7124{,}000 / 4{,}200 = 5.71.

  • On a linear axis from 0 to 6, every café below the median is squeezed between 0.31 and 1: just 11.5% of the axis width (0.69/60.69 / 6). The cafés above the median get 78.5% (4.71/64.71 / 6). The chart shouts about big accounts and whispers about small ones.
  • On a log axis from 0.25 to 8, the distance from 0.31 to 1 is log⁡10(1/0.31)=0.51\log_{10}(1/0.31) = 0.51 and from 1 to 5.71 is log⁡10(5.71)=0.76\log_{10}(5.71) = 0.76. Small cafés now get 40% of the spread, large cafés 60%. "Three times smaller than the median" looks exactly as far from the middle as "three times bigger", which is what a ratio means.

Joe labels the axis "Spend relative to the median café (log scale)", with ticks at 0.25, 0.5, 1, 2, 4 and 8, and draws a thin line at 1.

Square root scales, and why they are rare

There is a middle way between linear and log: the square root scale. Like a log axis, it compresses large values, but unlike a log axis, it can show zero7. Wilke is candid about its two problems: a step along a square root axis has no fixed meaning (it is neither "plus a fixed amount" nor "times a fixed factor"), and there is no natural place to put the ticks7. He suggests it fits data that comes in squares, such as areas, where the square root gives a length.

Example: orders per café, including the empty months

Joe wants to show monthly orders per café, which run from 0 (a café closed for refurbishment) to about 400. A log axis cannot show the zeros. A square root axis can, with ticks at 0, 25, 100, 225 and 400 (the squares of 0, 5, 10, 15 and 20), but Maya would have no idea what a step means.

Joe's better answer has nothing to do with scales: he shows the closed cafés as a separate note ("3 cafés had no orders in August, all closed for refurbishment") and plots the rest on a log axis. Explaining the zeros in words is usually clearer than bending an axis to fit them.

Aspect ratio: the shape of the box changes the slope

The aspect ratio is the width of the plotting area divided by its height. Because the axes on a time chart measure different units, any aspect ratio is technically valid7, and that is the danger. Unwin puts it plainly in the Handbook: aspect ratio has a surprisingly strong effect on how a chart is perceived, especially for time series. Widen and flatten it to show gradual change, narrow and heighten it to show dramatic change6.

The classic guidance is William Cleveland's "banking to 45 degrees". In a 1988 paper, Cleveland, Marylyn McGill and Robert McGill found that people judge the difference between the slopes of two lines most accurately when the average of their orientations is around 45 degrees, and proposed choosing the aspect ratio to achieve that11. Later work refined the rule. Heer and Agrawala extended it to banking at several scales at once, so short wiggles and long trends can each be banked properly12. Talbot, Gerth and Hanrahan repeated the original experiment in 2012 and found that 45 degrees had sat at the edge of the range originally tested, and flatter average slopes did at least as well for comparing slopes13. Robert Kosara's summary: 45 degrees is a reasonable heuristic for comparing two slopes, not a general guarantee of a good chart14.

Here is the angle a line segment makes on screen:

θ=arctan⁡ ⁣((Δy/Ry) H(Δx/Rx) W)\theta = \arctan\!\left( \frac{(\Delta y / R_y)\, H}{(\Delta x / R_x)\, W} \right)

where θ\theta is the angle of the segment, Δy\Delta y the change in the value, RyR_y the range of the y axis, HH the height of the plotting area, Δx\Delta x the step along the x axis, RxR_x the range of the x axis and WW the width of the plotting area. Foundations: ratios and rates

Example: the same subscription line, flat and steep

Subscription revenue rose from £270k to £1,080k over four years, an average of Δy=810/4=£202.5\Delta y = 810 / 4 = £202.5k a year. Joe's y axis runs from £0k to £1,200k (Ry=1,200R_y = 1{,}200), and the x axis covers four yearly steps (Δx=1\Delta x = 1, Rx=4R_x = 4).

  • In a wide dashboard tile, W=800W = 800 and H=300H = 300 pixels: θ=arctan⁡((202.5/1,200×300)/(1/4×800))=arctan⁡(50.6/200)=14\theta = \arctan\big((202.5/1{,}200 \times 300) / (1/4 \times 800)\big) = \arctan(50.6 / 200) = 14 degrees. A gentle climb.
  • In a square slide panel, W=H=400W = H = 400: θ=arctan⁡(67.5/100)=34\theta = \arctan(67.5 / 100) = 34 degrees. A confident climb.
  • To bank the average segment to 45 degrees, the numerator and denominator must be equal, which needs H/W=1,200/(202.5×4)=1.48H / W = 1{,}200 / (202.5 \times 4) = 1.48: a chart half as tall again as it is wide.

Same data, same axis range, three different impressions. Changing the y range has the same effect as changing the height. Here is the subscription line drawn with the y axis running up to £4,800k, which is equivalent to drawing it a quarter as tall:

Line chart of subscription revenue, 270, 432, 642, 858 and 1080 thousand pounds from 2020 to 2024, on a linear axis from 0 to 4800 thousand. The line occupies only the bottom quarter of the chart and looks almost flat, although revenue quadrupled. Tap or click to enlarge

Revenue quadrupled, and the chart looks like a business standing still. My rule for time charts: choose the shape so that the change your title talks about has a visible angle, roughly between 15 and 45 degrees, and never let a template's box decide it for you. If the title says "growth is slowing", the bend must be visible; if it says "stable", a gentle line is honest.

Zero baseline: always for bars, a judgement for lines

This is the most argued question in charting, and the grammar makes it easy to settle. The answer depends on the geometric object.

A bar shows its value twice: by where it ends, and by how long it is. Wilke calls the rule that follows the principle of proportional ink (after Bergstrom and West): when a shaded area represents a number, its size must be proportional to that number15. If a bar starts at 2% instead of 0%, its end is right but its length is wrong, and the eye reads the length. Wilke's verdict is short: "Bars on a linear scale should always start at 0."15 Cole Nussbaumer Knaflic says the same in Storytelling with Data, because the eye compares bar ends against a common baseline, and a cut baseline gives a false visual comparison16.

A line or a dot shows its value only by position. Knaflic notes that the zero rule therefore does not bind line charts: you can start above zero, but make it clear and do not zoom in so far that small wiggles look dramatic16. Unwin agrees there is no obligation to include zero, but adds that there should always be a reason for leaving it out, or readers start to suspect a trick6.

The research backs both halves. Correll, Bertini and Franconeri found that truncated axes make people see larger effects in bar and line charts alike, and that the effect persists even when the chart marks the truncation clearly. They advise designers to scale the axis to the size of effect that is meaningful17. Yang and colleagues found the truncation effect in 83.5% of participants across five studies, and it survived after people were taught about it18. Witt found that people judged effects best when the y axis spanned about 1.5 standard deviations of the data: a range set just beyond the data made every effect look big, a full range made every effect look small19.

Edward Tufte gave the distortion a number, the lie factor: the size of the effect shown in the graphic divided by the size of the effect in the data20.

L=EgEdL = \frac{E_g}{E_d}

where LL is the lie factor, EgE_g the size of the effect as drawn in the graphic and EdE_d the size of the same effect in the data, both measured as the same kind of change, here the relative difference between two values. An honest chart has L=1L = 1. Foundations: ratios and rates

Example: Explorer churn, with a truncated axis

Joe wants to show Maya that Explorer subscribers churn far more than Usual ones. His software, seeing values of 2.6% and 7.8%, set the axis to start at 2%. Wrong on purpose, here is what that looks like:

Bar chart with a truncated axis starting at 2%. Usual 2.6%, Explorer 7.8%. Because the bars start at 2%, the Usual bar is tiny and the Explorer bar looks almost ten times as long, although the real ratio is three to one. Tap or click to enlarge

In the data, Explorer churn is (7.8−2.6)/2.6=2.00(7.8 - 2.6) / 2.6 = 2.00, so 200% higher than Usual, three times as high. On the chart, the visible bars are 7.8−2=5.87.8 - 2 = 5.8 and 2.6−2=0.62.6 - 2 = 0.6 points long, so the drawn difference is (5.8−0.6)/0.6=8.67(5.8 - 0.6) / 0.6 = 8.67, or 867%. The lie factor is 8.67/2.00=4.38.67 / 2.00 = 4.3. The chart makes the gap look more than four times bigger than it is.

Example: the honest version

Bar chart starting at zero. Average monthly churn: Usual 2.6%, Explorer 7.8%. The Explorer bar is exactly three times as long as the Usual bar. Tap or click to enlarge

The Explorer bar is now exactly three times as long as the Usual bar, as it should be. The point is still strong, and nobody in the room can accuse Joe of exaggerating. A second honest number makes it sharper still: Explorer holds 30% of subscribers (1,080 of 3,600) but causes about 84 of the roughly 150 cancellations a month, some 56%. Knaflic's warning is the practical one: one sharp reader who spots a cut bar axis can throw out your whole argument, and your credibility with it16.

Example: the subscriber line, where zero hides the answer

Now a line. Ridgeway's active subscriber count hovers around 3,600, moving by about 40 either way from month to month. Maya would act if it fell by 150 in a month, roughly 4%.

Here is the rule I use, which I call the meaningful change rule: set the range of a line chart so that the smallest change that would change a decision moves the line visibly, and ordinary noise does not. As a working figure, the decisive change should move the line by at least a tenth of the plotting height.

  • With an axis from 0 to 4,000, a fall of 150 moves the line 150/4,000=3.75%150 / 4{,}000 = 3.75\% of the height. Maya would not see it.
  • With an axis from 3,000 to 4,000, the same fall moves it 150/1,000=15%150 / 1{,}000 = 15\% of the height, clearly visible, while the usual wobble of 40 moves it only 4%.

So Joe starts this line at 3,000, labels the axis "Active subscribers (axis starts at 3,000)", and adds a reference line at the level that would worry Maya. That is a choice made for a reason, exactly as Unwin asks, and it respects Correll's advice to scale the chart to the effect that matters.

Dual axes: the swap test

A dual axis chart puts two measures with different units on one chart, one read against the left axis and one against the right. It is tempting whenever two things seem related, such as sign ups and churn.

The critics are many. Knaflic advises against a secondary y axis because readers must work out which line belongs to which axis, and suggests labelling the second series directly or pulling the two apart into stacked charts that share the x axis21. Friendly notes that William Playfair used two vertical scales for population and taxes in the eighteenth century, and that the device is now widely considered a sin, because either scale can be adjusted to show different things22. Stephen Few, who had used dual axis charts in his own earlier books, wrote in 2008 that after examining them closely he could no longer think of a case where a better solution did not exist23.

The other side deserves a fair hearing. Few himself narrowed the argument carefully before reaching his conclusion: dual scales are least harmful with lines over time, where readers compare patterns rather than sizes, and he invited readers to propose exceptions23. And there is one case where a second axis is harmless: when it shows the same quantity in another unit, such as pounds on the left and euros on the right, or revenue on the left and "share of target" on the right. Then the right axis is a fixed translation of the left one, nothing can be adjusted independently, and it simply saves the reader a calculation.

To tell the two cases apart, I use the swap test: if you could change the range of one axis and move where the lines cross, or which line looks higher, the second axis is inventing a relationship. Where two lines cross on a dual axis chart is an accident of the two ranges, yet the eye treats a crossing as meaningful, which Few demonstrates in his article23.

My view: never put two independent measures on two axes. Index them to a common base, or stack two panels on the same time axis. Keep a second axis only when it is a fixed translation of the first.

Example: sign ups and churn, and the indexed fix

Maya's dashboard shows monthly sign ups on the left axis (140 in July, 520 in December) and monthly churn on the right axis (3.9% to 5.4%). With the right axis running from 3.5% to 5.5%, the churn line crosses the sign up line in late autumn, and Maya has started to say that "churn overtakes sign ups in November". Joe applies the swap test: with the right axis set to 0% to 6%, the churn line sits higher all year and there is no crossing. The crossing was an artefact of the axis range.

The fix is an index. For each measure, divide every month by its own average and multiply by 100:

It=100×xtxˉI_t = 100 \times \frac{x_t}{\bar{x}}

where ItI_t is the index in month tt, xtx_t the value in that month and xˉ\bar{x} the average month of the same measure. Foundations: indexing and base rates

December sign ups: 100×520/200=260100 \times 520 / 200 = 260. July sign ups: 100×140/200=70100 \times 140 / 200 = 70. March churn: 100×5.4/4.2=129100 \times 5.4 / 4.2 = 129. Both series are now measured against their own normal month, on one honest axis (the monthly churn pattern is derived for this example):

Line chart of two indices for 2024, each month measured against that measure's average month (100). Sign ups: Jan 95, Feb 85, Mar 90, Apr 90, May 85, Jun 80, Jul 70, Aug 70, Sep 85, Oct 90, Nov 100, Dec 260. Churn: Jan 95, Feb 102, Mar 129, Apr 110, May 98, Jun 95, Jul 93, Aug 93, Sep 95, Oct 93, Nov 93, Dec 105. Sign ups peak in December at 2.6 times normal, churn peaks in March at 1.29 times normal. Tap or click to enlarge

Now both lines share one unit, so a crossing would actually mean something, and a real story appears: sign ups jump to 2.6 times normal in December, and churn rises to 1.29 times normal three months later, when gift subscriptions run out. That is a question worth asking about the gift product, and the dual axis chart had hidden it.

Axis breaks: rarely, and never in a bar

Sometimes one value dwarfs the rest, and the temptation is to break the axis with a zigzag so the small values are visible. On a bar chart that breaks proportional ink, because the big bar is no longer the length its value says15. Isenberg and colleagues tested charts that combine two scales in one display and found that cut out designs, which show the full picture and a magnified detail side by side, worked best, while designs that overlay the two on top of each other should be avoided24.

Example: the house blend and the small lots

Three coffees, the house blend, the Colombian and the Ethiopian, account for 61% of Ridgeway's repeat orders. In this derived split, the house blend has 32%, the Colombian 16% and the Ethiopian 13%, while the other 15 coffees average 2.6% each. Joe wants to break the axis at 5% so the small coffees can be compared.

Instead he makes two panels. The first shows all 18 coffees on one axis from 0% to 35%, so Maya sees how concentrated repeat orders are. The second shows only the 15 smaller coffees on their own axis from 0% to 5%, titled "Among the other 15 coffees", so their differences are readable. Each panel is honest on its own, and together they say what the broken axis would have muddled.

Polar coordinates: for cycles, rarely for business

In polar coordinates, one value sets the angle around a circle and the other the distance from the centre. Pie charts and radar charts live here. Wilke points out the genuine strength: for cyclical data, the end joins the start, so December sits next to January7.

The cost is accuracy. In the ranking from Cleveland and McGill, position along a common scale beats angle and position along non aligned scales5. In a circle, the values no longer share one straight baseline, outer parts of the chart look larger because their arcs are longer, and comparing two months on opposite sides means comparing two radii pointing in different directions.

My view: use a polar layout only when the cycle itself is the point and exact comparisons are not. For business seasonality, a Cartesian line usually wins, and you can keep the cycle with a small trick: show 13 months, from December to December, so the turn of the year is visible in the middle.

Example: the gift season in a circle and in a line

Joe draws Ridgeway's sign up index as a radial chart: December's spike at 260 points up and out, and January (95) sits right beside it. It looks striking, but Maya cannot tell whether February (85) or May (85) is lower, or whether July (70) really sits 30 points below November (100). On a line chart starting in December 2023 and ending in December 2024, every month shares one baseline, the summer dip is plainly 30% below average, and both Decembers frame the year. Joe keeps the line.

Time axes: keep the intervals honest

Time is ordered and continuous, so its axis must treat equal time as equal distance. Knaflic warns against a common error: mixing intervals, such as decades followed by single years, at the same spacing on one axis, which bends the shape of the trend25. Unwin adds that the start date of a time series changes the story, as anyone who has read fund performance figures knows6.

Example: the month Joe nearly lost

Joe's export has quarterly figures for 2022 and monthly figures for 2023 and 2024. His chart puts each data point one step apart, so a quarter in 2022 takes the same space as a month in 2024, and growth in 2022 looks three times as steep as it was. He fixes it by placing every point at its real date, quarter ends included, and marks the 2022 points as quarterly totals divided by three.

Which scale: the decision in one flow

Here is the whole chapter as one decision. Start at the top with the question the chart must answer.

Tap or click to enlarge

Example: running Maya's Explorer question through the flow

Maya's question is "Should we push Explorer harder, or is it costing us customers?" Joe needs two charts.

  1. Churn by plan. The values are drawn as bars, so the flow goes straight to a linear scale from zero. This is the honest bar chart above: 2.6% against 7.8%, three to one.
  2. Explorer's share of new sign ups over the year. Not bars, not ratios across orders of magnitude, so a linear line chart. The decisive change for Maya is a shift of five percentage points in Explorer's share, so Joe sets the axis from 30% to 70% rather than 0% to 100%, which puts a five point shift at 12.5% of the height, and labels where the axis starts.

Neither chart needs a second axis, and every choice has a reason Joe can say out loud if Maya asks.

My view

Scales and axes are not style. They are the translation rules between your numbers and your reader's eyes. My positions:

  • Bars always start at zero. No exceptions on a linear scale. If the differences are too small to see, the bar chart is the wrong chart, not the wrong axis.
  • Lines start where the decision lives. Use the meaningful change rule, say clearly where the axis starts, and never zoom in so far that noise looks like news.
  • Choose linear or log with the equal step test. Pounds for capacity and cash, ratios for growth. For a general audience, show growth rates directly rather than a log axis.
  • Shape the box on purpose. The change your title names should be visible as an angle, not flattened or exaggerated by a template.
  • Two independent measures never share two axes. Index them or stack them.

If you want help applying this to your own reporting, analytics dashboards and data storytelling are a core part of my Data Science work, and you will find my rates on the transparent pricing page. The earlier article on what data science actually delivers for growth shows where charts like these fit into the bigger picture.

Conclusion

A chart is not a picture of your data. It is a translation, built from a grammar: data, mappings, marks, scales, coordinates and guides. Each part is a choice, and software makes most of them for you unless you take them back.

The choice that changes the message most is the scale, and one question settles it: what should the reader treat as the same step? Pounds or percentages, differences or ratios. Bars carry their value in their length, so they start at zero. Lines carry it in their position, so they start where a meaningful change becomes visible. The shape of the box sets the slope, a second axis invents relationships, and a log axis turns growth into a straight line for those who can read it.

At Ridgeway, the same five years of revenue said "two rockets" on one axis and "two channels slowing down" on another. Both were true. Choosing between them is not a technical detail. It is deciding which story Maya hears. Next week's chapter takes the next channel, colour, and the three kinds of colour scale.

If your dashboards were built by default settings and you want them to tell the truth at a glance, book the free workshop: we go through your key charts together, and the first two weeks of work are on me.

Sources

  1. 1.

    Leland Wilkinson, The Grammar of Graphics, second edition, Springer, 2005, https://doi.org/10.1007/0-387-28695-0 (first edition 1999, https://doi.org/10.1007/978-1-4757-3100-2)

  2. 2.

    Hadley Wickham, A Layered Grammar of Graphics, Journal of Computational and Graphical Statistics, volume 19, issue 1, pages 3 to 28, 2010, https://doi.org/10.1198/jcgs.2009.07098

  3. 3.

    Claus O. Wilke, Fundamentals of Data Visualization: A Primer on Making Informative and Compelling Figures, O'Reilly, 2019, chapter 2, Visualizing data: mapping data onto aesthetics, https://clauswilke.com/dataviz/aesthetic-mapping.html

  4. 4.

    S. S. Stevens, On the Theory of Scales of Measurement, Science, volume 103, issue 2684, pages 677 to 680, 1946, https://doi.org/10.1126/science.103.2684.677

  5. 5.

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

  6. 6.

    Antony Unwin, Good Graphics?, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, pages 57 to 78 (scales page 64, aspect ratio page 68, time series pages 74 to 75), https://doi.org/10.1007/978-3-540-33037-0

  7. 7.

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

  8. 8.

    Michael Friendly, A Brief History of Data Visualization, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, page 31, https://doi.org/10.1007/978-3-540-33037-0

  9. 9.

    Alessandro Romano, Chiara Sotis, Goran Dominioni and Sebastián Guidi, The Scale of COVID 19 Graphs Affects Understanding, Attitudes, and Policy Preferences, Health Economics, volume 29, issue 11, pages 1482 to 1494, 2020, https://doi.org/10.1002/hec.4143

  10. 10.

    Duncan N. L. Menge and colleagues, Logarithmic Scales in Ecological Data Presentation May Cause Misinterpretation, Nature Ecology and Evolution, volume 2, pages 1393 to 1402, 2018, https://doi.org/10.1038/s41559-018-0610-7

  11. 11.

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

  12. 12.

    Jeffrey Heer and Maneesh Agrawala, Multi Scale Banking to 45 Degrees, IEEE Transactions on Visualization and Computer Graphics, volume 12, issue 5, pages 701 to 708, 2006, https://doi.org/10.1109/TVCG.2006.163

  13. 13.

    Justin Talbot, John Gerth and Pat Hanrahan, An Empirical Model of Slope Ratio Comparisons, IEEE Transactions on Visualization and Computer Graphics, volume 18, issue 12, pages 2613 to 2620, 2012, https://doi.org/10.1109/TVCG.2012.196

  14. 14.

    Robert Kosara, Banking to 45 Degrees, eagereyes, 3 June 2013, https://eagereyes.org/blog/2013/banking-45-degrees

  15. 15.

    Claus O. Wilke, Fundamentals of Data Visualization, O'Reilly, 2019, chapter 17, The principle of proportional ink, https://clauswilke.com/dataviz/proportional-ink.html

  16. 16.

    Cole Nussbaumer Knaflic, Storytelling with Data: A Data Visualization Guide for Business Professionals, Wiley, 2015, chapter 2, Choosing an effective visual, pages 50 to 53, https://www.storytellingwithdata.com/books

  17. 17.

    Michael Correll, Enrico Bertini and Steven Franconeri, Truncating the Y Axis: Threat or Menace?, Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems, pages 1 to 12, 2020, https://doi.org/10.1145/3313831.3376222

  18. 18.

    Brenda W. Yang, Camila Vargas Restrepo, Matthew L. Stanley and Elizabeth J. Marsh, Truncating Bar Graphs Persistently Misleads Viewers, Journal of Applied Research in Memory and Cognition, volume 10, issue 2, pages 298 to 311, 2021, https://doi.org/10.1016/j.jarmac.2020.10.002

  19. 19.

    Jessica K. Witt, Graph Construction, Meta Psychology, volume 3, 2019, https://doi.org/10.15626/MP.2018.895

  20. 20.

    Edward R. Tufte, The Visual Display of Quantitative Information, Graphics Press, 1983, second edition 2001, chapter 2, Graphical integrity, https://www.edwardtufte.com/book/the-visual-display-of-quantitative-information/

  21. 21.

    Cole Nussbaumer Knaflic, Storytelling with Data, Wiley, 2015, chapter 2, Choosing an effective visual, section on the secondary y axis, pages 66 to 68, https://www.storytellingwithdata.com/books

  22. 22.

    Michael Friendly, A Brief History of Data Visualization, in Chun houh Chen, Wolfgang Härdle and Antony Unwin (eds.), Handbook of Data Visualization, Springer, 2008, page 24, https://doi.org/10.1007/978-3-540-33037-0

  23. 23.

    Stephen Few, Dual Scaled Axes in Graphs: Are They Ever the Best Solution?, Visual Business Intelligence Newsletter, Perceptual Edge, March 2008, https://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf

  24. 24.

    Petra Isenberg, Anastasia Bezerianos, Pierre Dragicevic and Jean Daniel Fekete, A Study on Dual Scale Data Charts, IEEE Transactions on Visualization and Computer Graphics, volume 17, issue 12, pages 2469 to 2478, 2011, https://doi.org/10.1109/TVCG.2011.160

  25. 25.

    Cole Nussbaumer Knaflic, Storytelling with Data, Wiley, 2015, chapter 2, Choosing an effective visual, page 46, https://www.storytellingwithdata.com/books

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