Curious Minds

Clear answers to science and history questions

Bar Chart with 2 Y Axis: Dual Axis Explained

· 6 min read · Science

A bar chart with two y-axes (a dual-axis bar chart) is a chart that plots two series on the same category axis but scales each series against its own vertical axis, one on the left and one on the right. It is used to compare two measures with different units or magnitudes—such as revenue in dollars and units sold—on a single set of categories, but it is also one of the most frequently misused chart types because the relative heights of the bars depend entirely on how each axis is scaled.

What a Dual-Axis Bar Chart Actually Is

In a standard bar chart, every bar is measured against one y-axis. In a dual-axis version, the chart has two vertical scales: the primary axis on the left and the secondary axis on the right. Each data series is assigned to one of these axes. The category axis (usually the x-axis) is shared, so each category has two bars side by side—or two lines, or a bar and a line—each read against its own scale.

The key structural point is that the two axes are independent. The left axis might run from 0 to 1,000,000 while the right axis runs from 0 to 100. Nothing forces the gridlines of the two axes to align, and nothing forces the zero points to coincide. This independence is the source of both the chart's usefulness and its danger.

When a Second Y-Axis Makes Sense

A second axis is defensible when two conditions hold: the two measures have genuinely different units, and the relationship between them is the point of the chart. Examples include:

  • Revenue and units sold. Revenue in currency and volume in units are different quantities; a dual axis lets a reader see whether volume growth is translating into revenue growth.
  • Temperature and rainfall. Degrees Celsius and millimetres are incommensurable, but plotting them together is a common and readable way to show seasonal patterns.
  • Production output and defect rate. Output is a count; defect rate is a percentage. A dual axis can show whether rising output coincides with rising defects.

In each case, the two series are not being compared as magnitudes of the same thing; they are being compared as patterns over the same categories.

Why Dual Axes Are So Often Misleading

The central problem is that the choice of axis range is arbitrary. By compressing or expanding one axis, a chart designer can make one series appear to dominate the other, or make two unrelated series appear to move in lockstep. A well-known critique of dual-axis charts is that they invite spurious correlation: two series can be made to look correlated simply by choosing axis limits that align their peaks and troughs.

There is no neutral default. Software will often auto-scale each axis to its own data range, which means the visual heights of the two series are not comparable at all. A bar that looks twice as tall as another may represent a value that is smaller in absolute terms. Readers who do not notice the second axis—and many do not—will draw the wrong conclusion.

A second, subtler issue: bars encode magnitude by length from a common baseline. When two bars in the same category are measured against different baselines, the visual comparison of their lengths is meaningless. This is why many visualization practitioners recommend using a line for the secondary series rather than a second set of bars, so that the two series are visually distinguished and the reader is less likely to compare bar lengths directly.

How to Build One Responsibly

If a dual-axis bar chart is genuinely the right choice, these steps reduce the risk of misreading:

  1. Label both axes clearly with units and, ideally, a color key that matches each axis to its series.
  2. Color-code the axis labels to match the series they measure, so the reader can tell which scale applies to which bars.
  3. Consider a bar-plus-line design rather than two sets of bars; the line signals a different measure and discourages direct length comparison.
  4. State the axis ranges explicitly and avoid truncating either axis unless there is a strong reason; truncated axes exaggerate differences.
  5. Annotate the takeaway in the title or subtitle so the reader knows what relationship they are meant to see.
  6. Provide the underlying numbers in a table or tooltip, since the visual encoding alone is unreliable.

Common Problems and Fixes

  • Axis ranges chosen to create a narrative. Fix: set both axes from zero where possible, or disclose the range in the caption.
  • Readers missing the second axis. Fix: use color matching and a legend that names the axis for each series.
  • Spurious correlation. Fix: ask whether the two series are plausibly related; if not, split them into two charts.
  • Too many series. Fix: a dual axis supports two series well; three or more becomes unreadable. Use small multiples instead.
  • Bars with different baselines. Fix: switch the secondary series to a line, or use two stacked charts.

Alternatives Worth Considering

Before committing to a dual axis, consider whether a simpler chart answers the question. Indexing both series to a common base (for example, setting the first period to 100) puts them on one axis and makes relative change comparable. Small multiples—two charts side by side sharing the same x-axis—avoid the dual-axis problem entirely. A scatter plot is better when the question is whether two measures are correlated rather than how they move over categories. And if the two measures can be combined meaningfully (such as price times quantity into revenue), a single derived measure may be clearer than two axes.

Frequently Asked Questions

Is a bar chart with two y-axes ever the best choice?

It can be, when two measures with different units must be compared across the same categories and the relationship between them is the point. It is rarely the best choice for a general audience, because the second axis is easy to miss.

Why do dual-axis charts sometimes show misleading correlations?

Because each axis is scaled independently, the designer can choose ranges that make two unrelated series appear to rise and fall together. The visual alignment is an artifact of the axis choice, not evidence of a real relationship.

Should the secondary series be bars or a line?

Many practitioners prefer a line for the secondary series. Bars imply comparison by length from a common baseline, which does not hold when the two sets of bars use different axes.

Can I use more than two y-axes?

Technically yes in some software, but it is almost always a bad idea. More than two axes makes the chart very hard to read and multiplies the risk of misinterpretation.

Do both axes need to start at zero?

For bar charts, starting at zero is strongly preferred because bar length encodes magnitude. If an axis must be truncated, say so clearly in the caption.

What is the difference between a dual-axis chart and a combo chart?

A combo chart mixes chart types (for example, bars and a line) and may or may not use two axes. A dual-axis chart specifically uses two vertical scales; the two features are often combined but are not the same thing.

In this article
  1. What a Dual-Axis Bar Chart Actually Is
  2. When a Second Y-Axis Makes Sense
  3. Why Dual Axes Are So Often Misleading
  4. How to Build One Responsibly
  5. Common Problems and Fixes
  6. Alternatives Worth Considering
  7. Frequently Asked Questions