Toan Hoang

Tableau QT: Waffle Image

I thought that this week’s Tableau Quick Tip will be something a little different and fun, so here you go, our Waffle Image in Tableau.

Note: This is an alternative type of data visualisation, and sometimes pushed for by clients. Please always look at best practices for data visualisations before deploying this into production.

Data

We will start by loading the following data into Tableau Desktop / Tableau public.

Path
1
100

Yep, that is all that we need for now, and we are going to play with Data Densification.

Calculated Fields

We only need to create the following Parameters and Calculation Fields:

@Number of Columns Parameter

Path (bin)

Index

INDEX()-1

Rows

IF ([Index]%[@Number of Columns]) < [@Number of Columns]/2 THEN
    ROUND([Index]/[@Number of Columns],0)
ELSE
    ROUND([Index]/[@Number of Columns],0)-1
END

Columns

FLOAT([Index]%[@Number of Columns])

Images

We will now create the following images:

We have now downloaded an image, used an online service to split the image, we now need to Unzip the files into your My Tableau Repository\Shapes directory.

Note: If you need, please refer to the my following Tableau Quick Tip on Customer Shapes here

With this done, let us start creating our data visualisation.

Worksheet

We will now build our worksheet:

If all goes well, you should not see the following

Now we apply our sliced images:

You should now have the following:

and finally, we will adjust the final cosmetics:

and we should hopefully end up with our final data visualisation:

and boom, we are done with this Tableau Quick Tip, and I hope you had some seriously good fun; as always, you can find my data visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/WaffleImage/WaffleImage

Summary

I hope you all enjoyed this article as much as I enjoyed writing it and as always do share the love. Do let me know if you experienced any issues recreating this Visualization, and as always, please leave a comment below or reach out to me on Twitter @Tableau_Magic. Do also remember to tag me in your work if you use this tutorial.

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: https://www.patreon.com/tableaumagic

Exit mobile version