Toan Hoang

Tableau QT: Thermometer Chart

This is a Quick Tip on how to build a Thermometer Chart in Tableau, so less reading and more jumping in. We are going to spend 5 minutes or less building our Thermometer Chart in Tableau.

Note: As always never choose a data visualisation type and try to fit your data into it, instead, understand your data and choose the best visualization for your data consumers.

Data

Load the following data into Tableau Desktop / Public.

Country,Path,Value
United States,1,0.9
United States,101,0.9
Canada,1,0.5
Canada,101,0.5
United Kingdom,1,0.7
United Kingdom,101,0.7
France,1,0.3
France,101,0.3

Note: we require path and duplicate lines for densification. See our tutorial on Data Densification for more information. Click here

Calculations

We will start by creating the following calculated fields.

Path (bin)

Index

INDEX()-1

TC_Value

WINDOW_MAX(MAX([Value]))

TC_Thermometer

[Index]*[TC_Value]

TC_Size

IF [TC_Thermometer] = 0 THEN
    1
ELSE
    0
END

TC_Size (Background)

IF [TC_Thermometer] = 0 THEN
    1
ELSE
    0
END

TC_Color

IF [Index]/100 < [TC_Value] THEN
    [Index]
ELSE
    NULL
END

Calculated Fields

Now that we have created our Calculated Fields, we will build our Worksheet.

If all goes well, you should see the following:

Now, we will add a background shape

You should now have the following:

Now we will adjust the cosmetics:

You would like to end up with the following data visualisation.

and boom, we are done, nice, simple and quick. You find my Waterfall Chart Dashboard on Tableau Public at
https://public.tableau.com/profile/toan.hoang#!/vizhome/ThermometerCharts/ThermometerCharts

Summary

I hope you all enjoyed this article as much as I enjoyed writing it. Do let me know if you experienced any issues recreating this Visualisation, and as always, please leave a comment below or reach out to me on Twitter @Tableau_Magic.

If you like our work, do consider supporting us on Patreon, and for supporting us, we will give you early access to tutorials, exclusive videos, as well as access to current and future courses on Udemy:

Also, do be sure to check out our various courses:

Exit mobile version