Guidelines
Suggest edit

Use a diverging colormap when values have a meaningful midpoint

For ordered or continuous value comparison around a meaningful midpoint, use diverging color encoding on color-mapped charts to improve fidelity and mitigate weak baseline comparison for readers interpreting deviation from a reference value.

  • purpose:refine
  • basis:empirical
  • data:ordinal
  • data:quantitative
  • quality:fidelity
  • lever:encoding
  • aesthetic:color:use

advice

Midpoint color scale

Use a diverging colormap when color encodes ordered values around a meaningful middle point. For example, when values show difference from a baseline or a natural zero, map the midpoint to a neutral middle color and let colors diverge continuously on both sides.

reason

Why midpoint color needs a split

A midpoint task is not only about magnitude. Readers must also see which values fall on each side of a reference and how far away they are.

Mechanism: A diverging scale makes the center value visually explicit and supports direct comparison to that reference point. This reduces ambiguity that occurs when all values are placed on one continuous scale with no visible middle.

Evidence: The paper recommends diverging colormaps for ordered or continuous data when there is a meaningful middle point, such as differences from a baseline or a natural zero value, because they support comparisons to that middle point (Szafir, 2018).

context

Use when deviation from a reference matters

  • User Goal: Judge whether values are above, below, or near a reference.
  • Task: Compare magnitude relative to a midpoint.
  • Data: Ordered or continuous values with a meaningful center such as a baseline or natural zero.
  • Chart Setting: A chart uses color as the main value encoding.
  • Audience: Readers must compare values to the middle point quickly and accurately.
  • Success Criterion: The center value is visually obvious and both sides of the scale are easy to distinguish.

exceptions

Do not use when there is no meaningful center

  • Break it when: The data has no meaningful midpoint. Why: The source recommends a sequential colormap for pure low-to-high magnitude reading.
  • Break it when: The data is categorical. Why: The task is no longer ordered comparison around a center.

costs

What you trade away

Sacrifice: You give up a single uninterrupted low-to-high ramp. Risk: If the midpoint is arbitrary or unimportant, the split can imply a distinction that the analysis does not need. Mitigation: Use a sequential scale when the task is simple magnitude reading rather than deviation from a reference.

mistakes

Common midpoint failure

Mistake: Using a sequential or rainbow scale when the main task is comparison to a baseline. Why it fails: Readers do not get a clear visual center, so above-versus-below comparisons become less direct.

check

How to review the midpoint mapping

Failure Sign: Readers can see low and high values, but not the reference split. Quick Check: Inspect the scale and verify that the midpoint is mapped to a neutral middle color. Stronger Test: Ask whether a reader can identify values on either side of the baseline without reading the legend closely.

fix

What to change

  • Set the meaningful midpoint to the center of the colormap.
  • Use a neutral middle color at that midpoint.
  • Use continuous color ramps that diverge on both sides of the center.
  • Replace the diverging scale with a sequential one if no real midpoint exists.

References

Szafir, D. A. (2018). The good, the bad, and the biased: five ways visualizations can mislead (and how to fix them). Interactions, 25(4), 26–33. https://doi.org/10.1145/3231772