New Tool Radar

AI Design Workflows

How to Check a Colour Scale on an Ordered Chart

Check that a colour scale matches the order of the data, because a rainbow scale on ordered data hides the pattern it should show.

Schematic with three steps: check the data is ordered, match the scale to the order, test the scale without colour vision.

Ordered data needs an ordered colour scale: light to dark for low to high, or one hue against another for below and above zero. A rainbow scale gives every value a different bright colour, so the eye cannot tell high from low. This check matches the scale to the order of the data.

Why this needs its own check

WebAIM’s contrast guide states that WCAG 1.4.11 Non-text Contrast requires the parts of a graphic required to understand the content to contrast at least 3 to 1 against adjacent colours. Colour scales also need to work for readers with colour vision deficiency, so the scale must differ in lightness as well as hue, not in hue alone.

What you need before you start

  • The chart as it will be published
  • The data behind the chart, in order
  • A colour-vision simulation or a greyscale view

Step 1 – Check the data is ordered

Write down whether the data runs low to high, below to above zero, or in categories with no order. A scale for ordered data must itself be ordered; a scale for categories must not pretend to be ordered.

Step 2 – Match the scale to the order

For low-to-high data, use a single hue from light to dark. For data above and below zero, use two hues meeting at a neutral middle. A rainbow scale on ordered data fails.

Step 3 – Test the scale without colour vision

View the chart in greyscale and with a colour-vision simulation. If the order is still readable in greyscale, the scale differs in lightness as well as hue and passes. If the steps vanish, it fails.

Worked example

Practice check: a fictional Marlow and Sons rainfall chart

The example below is fictional. Marlow and Sons is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.

Part What it should be As shown Result
Data order named Order written down Rainfall low to high by month Pass
Scale matches the order Light to dark for low to high Light blue to dark blue Pass
Greyscale test Order readable in greyscale Order readable in greyscale Pass
Middle values distinct Each step told apart Two middle months share one shade Fail – steps not distinct

Only 3 of the 4 checks pass: the named order, the light-to-dark scale, and the greyscale test. The one failure is the two middle months sharing one shade.

What to do when something is wrong

Add one more step to the scale so each month has its own shade, and check the steps in greyscale again. Do not fix it by adding a rainbow colour, which would break the order.

Expected result. We checked the WebAIM contrast guide listed in Sources. We did not test a live Marlow and Sons chart. UNTESTED: no chart was viewed in greyscale; the practice table shows the expected result pattern for a scale with one duplicated step.

Limits

  • This check covers colour scales on ordered data only. It does not cover chart type choice or axis labels, which have their own checks.

Sources

See all