## How to create a simple 4-colour quadrant in Tableau

The example in this blog is based on data provided by The World Bank and is also available on makeovermonday.co.uk/data under 2020 -> Week 11.

Step 1. Build a scatter plot and add reference lines to both axes.

Step 2. Create a calculated field to colour the circles falling under the 4 parts of the quadrant differently. Place the new field on the Colour shelf.

Configure the table calculation as below:

Click on the Colour shelf and choose colours you like. You may want to reduce the opacity to something like 60% if your circles are overlapping.

Step 3. Add 4 annotations to each side of the quadrant. Right click on the scatter plot -> ‘Annotate’ -> ‘Area’.

Add a label to your newly created annotation and expand the area to each side of the reference lines. Then right click on it -> ‘Format’ and choose appropriate color under ‘Shading’. Use low opacity or very subtle colors, so that your points on the scatter plot stand out.

Repeat the last step for each side of the quadrant.

And there you have it – a nice and simple 4-colour quadrant in Tableau!

• It is very easy to create.
• Your quadrant can be forced to remain in the same shape even if your axes change when more data comes in or when filters are applied. For example, if GDP per Capita reaches 150,000 on the x-axis above in the following year, you can force the annotation to reach to 150,000 via adjusting the axis, and this will preserve its shape.

• It can only be used if your reference lines on both axes remain static.

London

### 8 thoughts on “How to create a simple 4-colour quadrant in Tableau”

1. Stefan says:

Thank you for this as just what I need as somebody wants a nice static scatter graph for their report!

2. Lloyd Roberts says:

3. Satish says:

1. natalia.miteva says:

Hi Satish, they have been fixed now.

4. Kevin Nguyen says:

Not really good in color. People look more into dynamic axis

5. Paok says:

Nice one…Can I ask how you can do a 6 or 8 colour quadrant? What would be the change in the formula?

6. Dim says:

Hi, when you add the annotation area, can you still hover on the scatter plot points to see their values or country name? Or does it stay always at the front?

7. Dimi says:

Can you dynamically change the coloured areas? If my scatterplot changes each time, I’d like the background colours to be adjusted and avoid annotate the area manually each time