Colour — Data Visualization

Pick colour by its job. Categorical colour tells groups apart that have no order (in store and delivery per area). One colour with the rest grey draws the eye…

Colour on a chart has four jobs: telling groups apart, drawing the eye to one thing, showing more and less, and showing up and down. One chart is best off using colour for one job only. In the lesson Pie Charts and What to Use Instead you saw the colours used up and repeated. Here you learn to pick colour by its job.

Colour to tell groups apart

Categorical colour gives each group its own colour, and those colours have no order: one is not bigger than another. These are app members' orders in 8 areas, split by channel:

(chart picture)

Two colours, one per channel, and a legend that names them. Green Hill ordered delivery 305 times out of 412 orders, while Old Town came to the shop 273 times out of 359. Categorical colour works well for two to five groups. Beyond eight, the colours start to repeat.

One colour to draw the eye

When a chart's message is about one bar, colour that bar only, and leave the rest grey:

(chart picture)

The eye lands on March at once, $1,598.60, the only month under $2,000. The other months still read as a comparison. The title says the same thing as the colour, so each backs up the other.

Light to dark for more and less

Sequential colour uses one colour, from light to dark: the darker, the bigger. These are the total orders per area:

(chart picture)

On a bar chart, sequential colour repeats what the length of the bars already says, so it is allowed, not needed. Sequential colour is most useful where there is no length, such as a map of areas or a table whose cells are coloured. The rule: one colour, light for few, dark for many, and the scale written down.

Two directions for up and down

Diverging colour uses two opposite colours for numbers below and above zero, with grey in the middle. This is the change in revenue from the month before:

(chart picture)

Revenue rose $191.68 in February, fell $617.62 in March, rose $463.50 and $469.75 in April and May, then fell $106.50 in June. The two colours split the months that fell from the months that rose at once, and longer bars get a darker shade. This lesson's exercise calculates these numbers in a spreadsheet.

Rainbow colour

Giving every bar its own colour feels lively, but it misleads:

(chart picture)

Six colours make a reader look for meaning in them: are the months with similar colours one group? They mean nothing. The order of a rainbow does not read as more and less either. Months here need only one colour, or one colour for the month being discussed.

Safe for different eyes

Some people find red and green hard to tell apart. So never tell two groups apart with red and green alone: the diverging chart above uses red and blue. Pick colours that also differ in how light or dark they are, and never let colour work alone. Write the series' names in the legend or at the ends of the lines, and write the numbers in the table or on the bars that matter.

⚠️ Common mistakes

TL;DR: Pick colour by its job. Categorical colour tells groups apart that have no order (in store and delivery per area). One colour with the rest grey draws the eye (March, $1,598.60). Sequential colour, one colour from light to dark, shows more and less. Diverging colour splits down from up, with grey at zero (revenue fell $617.62 in March and $106.50 in June). Rainbow colour misleads. Never tell things apart with red and green alone, and always write the names or the numbers.

⚡ One colour

Guess first: Hannah wants a chart of revenue per month that points straight at March. Every bar in a different colour, or one bar in colour and the rest grey?

One bar in colour and the rest grey. The eye lands on March at once, $1,598.60, and the other months still read as a comparison.

Meaning: To draw the eye to one thing, colour that thing only, and leave the rest grey.

⚡ More and less

Guess first: Owen colours the areas on a map by the number of orders. Eight different colours, or one colour from light to dark?

One colour from light to dark. Different colours have no order, so a reader cannot tell which colour means more.

Meaning: More and less is shown with one colour in shades: light for few, dark for many.

⚡ Up and down

Guess first: some changes in revenue from the month before are positive and some negative. Which colouring shows the months that fell at a glance?

Diverging colour: one colour for down, its opposite for up, grey at zero. March (down $617.62) and June (down $106.50) split from the months that rose at once.

Meaning: Numbers that can fall below or rise above zero get two opposite colours.

⚡ Red and green

Guess first: Owen's chart uses red for down and green for up, with no labels. What is the problem?

Some people find red and green hard to tell apart, so to them the bars that rose and the bars that fell can look alike. Use red and blue, and write the numbers or the names on the chart.

Meaning: Colour must not work alone: pick a safe pair, and add names or numbers.

What you will learn