Microlearning

Colouring Your Charts

Written by Mauricio Bernardo da Silva | Dec 13, 2023 11:15:22 AM

We know data visualisation is one of the most important ways to make sense of data and consume information. And for that to happen well, the correct use of colour is essential.

In this article, I’ll highlight some important considerations when selecting colours for charts, and show examples of some common mistakes to avoid.


Hi, I'm Mauricio. C
onnect with me on LinkedIn to share ideas and keep the conversation going!

Humans are visual creatures. The vast majority of information we process comes from our sense of sight. It’s no surprise, then, that data visualisation is one of the most important cornerstones in analytics.

And I’m not talking about big numbers written down for all to see, but the relationship between the forms and numbers that make up our charts. 

One element that is often overlooked, and commonly misused, is colour. Well, the vast majority of people who create charts (me included), never had formal training in any type of design-focused discipline, much less dedicated time to learning colour theory.

But, we can’t let that get in the way of powerful data visualisation, so here are some important considerations when colouring your charts, and mistakes you should avoid.

Consider these when colouring your charts

- Emotions

The colours you select will evoke certain emotions in your audience, based on previous associations. Don’t try to fight this. Instead, use it in your favour. Look at the two examples below, taken from the decluttering exercise in our Data Visualisation & Storytelling Certificate. Which one feels more natural to you when it comes to the colour and what it’s associated with?

I’m fairly confident that you’d say that the first one, with “Sales” in blue, and “Costs” in red. This is a common association we have: blue for positive, red for negative. So, should we use blue for positive numbers and red for negative? Again, depends on context. If we are using a sequential palette for visualising company profit, that would make sense, but not for temperature: for that, the opposite would be best, with blue for cold (low temperature) 🥶 and red for hot (high temperature) 🥵.

Credit: Wikipedia

- Accessibility

Colour vision deficiencies (CVD) are more common than most of us realise.

It’s estimated that around 4.5% of the world population has some type of CVD, but the majority are men: around 8% of all men, whereas it’s about 0.5% of all women. The popular, yet inaccurate, term used to describe these conditions is colour blindness. But it’s not a blindness to colour in general. Let me explain. 

There are different types of CVD. Total colour blindness (only seeing in black and white, a condition known as achromatopsia) is extremely rare. By far, the most common CVD is some sort of red-green colour deficiency, accounting for 99% of everyone who has a CVD. Some red-green CVD types are milder, just making one colour look a bit more like the other (red-ish green, or green-ish red), but some types make people unable to tell the difference between them at all! 

Credit: colourblindawareness.org

Avoid traffic light (green, yellow, red) colour palettes, as they will negatively affect people with colour deficiencies. If you must use this palette for whatever reason, add other elements to convey the same information that the colour is conveying. Instead, go for blue and orange, as they are complementary colours and accessible. Default to them if you are unsure, especially for diverging palettes.

And, this is important for everyone, ensure enough distinction between the different colours, and from colour to their background. Please don’t do anything similar to this next chart. 👇 And yes, the colours are different, and the two lines are there. 😵‍💫

- Harmony

Speaking of colour palettes, not only do we care for them in terms of accessibility, but also in terms of aesthetics. We want our charts to be pretty and easy to understand. Hopefully, you have great designers in your company who take care of that for you and provide you with a brand-specific palette that is great in those two aspects.

If you don’t, consider using some tried and tested palettes given by specialised data visualisation software (e.g. Tableau) and coding libraries (e.g. “viridis” for R). And if you want to try your hand at creating your own, look at colours that commonly go together in nature (like the orange from the sun against the blue sky during sunset).

Credit: Wikimedia Commons

Common mistakes to avoid

  • Too many colours 🌈: colours should represent something. If it’s for categories, as soon as you pass around 5 or more, the viewer won’t be able to hold all those representations easily in their mind. In those cases, you are better off just using labels (i.e. writing down what the bars/lines/etc. represent). 

Credit: sweetspot.com

  • Overreliance on colour 🩼: linked to the above, see if it would make sense to add other elements to represent what the colours are representing. The reason is that, if the colours are not distinct or accessible enough, you have a backup.
  • Using colours “just because” 🎨: think of colours as an extra “axis” or “dimension” in your chart. They are a way to convey information. Don’t just add colour to make the charts prettier… make sure they add to the message first. 
  • Inconsistency 😖: once you pick a colour to represent something, stick with it, if possible. That is not an issue for your “basic” colours, such as always going with grey for every bar chart, but if a colour now represents a product/brand/location, try to use the same colour every time that appears.
  • Ignoring cultural differences 🌏: we talked about emotions evoked by colour, but we have to be mindful that the same associations are not global. Whereas in the Western world, red is associated with bad, in many Asian countries, red is associated with luck and prosperity. If the chart will be consumed globally, use other criteria to select the colours, or keep it more neutral.
  • Selecting the wrong colour scheme 👩‍🎨: we discuss this in the Data Visualisation and Storytelling Certificate, but think about the following situations:
    • Just highlighting a few elements: what colour to pick, and against what colour?
    • A sequential scheme: when does it make sense to go from lighter to darker with the same colour?
    • A diverging scheme: do I have contrasting elements?
    • A categorical scheme: am I just referring to elements? and how many?

Let's practice!

Channel your inner critic now and judge the following charts based on what we covered here:

  1. Are the colours linked with common associations?
  2. Is the palette accessible?
  3. Is it harmonious and nice to look at?
  4. Are there too many colours? Is the chart over-relying on colours?
  5. Are the colours being used deliberately and consistently?
  6. Is the colour scheme appropriate for the info being presented?

Dealroom’s Startup Jobs in Amsterdam

Storytelling With Data - Exercise

UnderscoreStreets (_STREETS) Healthy Streets Index

Dive deeper into the topic

"Colorwise" by Kate Strachnyi: This book is a data storyteller guide focused on the use of colour in charts, tables and infographics. There is a bit of everything here, from psychological, historical and cultural considerations for colour. Good for a real deep dive.

The Role of Color Theory in Data Visualization by RevUnit: This page discusses exactly that, from colour anatomy, harmony, schemes and many best practices.

Practical Rules for Using Color in Charts by Stephen Few: This is an effective short guide, with quick rules and clearly explains some very common mistakes and how to avoid them.

Data Visualization for Beginners (Color) by Plain Concepts: This page is a more thorough guide, on how to select colour schemes. It also has some guides on creating colour palettes and also lists several effective ones.

Colorblind Guide: This website contains a ton of information on CVD. Perhaps most useful is the CVD Simulator: you can upload the image of your chart and simulate how it will look for people with different colour visual deficiencies.

Wrapping Things Up

Here are the key points we covered:

 Colour plays an essential role in data visualisation: It can be a great way to convey information and make the chart more effective and pleasant to look at.

But it is often misused: Many people who create charts don't think about this element enough and/or don't know how to use it correctly. 

Some key considerations: In this article, we covered some important points to consider and mistakes to avoid.

See you in the next one!