Toan Hoang

Tableau QT: Rounded Doughnut Chart

This is a Quick Tip on how to build a Rounded Doughnut Chart in Tableau, so less reading and more jumping in. We are going to spend 5 minutes or less building our Rounded Doughnut 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.

CategoryPathValue
A1500
A101500
B1300
B101300
C1200
C101200

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

Calculated Fields

We will start by creating the following calculated fields.

Path (bin)

Index

INDEX()-1

TC_Value

WINDOW_MAX(MAX([Value]))

TC_Total Value

WINDOW_SUM(MAX([Value]))/2

TC_Percentage

[TC_Value]/[TC_Total Value]

TC_Starting Point

(RUNNING_SUM([TC_Percentage])-[TC_Percentage])*360

X

SIN(RADIANS((([Index]*[TC_Percentage]*3.6))+[TC_Starting Point]))

Y

COS(RADIANS((([Index]*[TC_Percentage]*3.6))+[TC_Starting Point]))

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

Worksheet

Now that we have our Calculated Fields and Bin object, let us create our Worksheet:

If all goes well, you should see the following:

We will now add a little bit of magic by editing our Table Calculation for Y.

If all goes well, you should now see the following:

Now adjust the visuals cosmetics:

You should now have the following:

and boom, yes, this has been trickier than normal Quick Tip, but hey, it is all good. You can find my Rounded Doughnut Chart on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/RoundedDoughnutCharts/RoundedDoughnutCharts

If you want to have some fun, you can drag TC_Value onto the Size Mark and adjust:

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