Toan Hoang

Drawing a Combined Radial and Rounded Bar Chart in Tableau

I was browsing Pinterests for interesting visualisations and came across a visualisation that combined a Radial Bar Chart with a Rounded Bar Chart, and as such, I knew that I had to give this a try in Tableau. Initially, I considered having two separate worksheets and putting them next to each other, but trying, I want to put into one worksheet, so do enjoy.

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 into production.

Data

Load the following data into Tableau Desktop / Public.

CountryPathSales ($ millions)
United States11500
United States2811500
United Kingdom1900
United Kingdom281900
France1800
France281800
Canada1500
Canada281500
Hong Kong1200
Hong Kong281200

Note: we need two records for each Country as we are going to be drawing lines and using densification to get more points on our canvas. For more information, check out our article on Data Densification.

Calculated Fields

With our data set loaded into Tableau, we are going to create the following Calculated Fields and Bins:

Create Path (bin)

Now let us create the following Calculated Fields:

Index

INDEX()-1

TC_Sales ($ millions)

WINDOW_MAX(MAX([Sales ($ millions)]))

TC_Total Sales ($ millions)

WINDOW_SUM(MAX([Sales ($ millions)]))

TC_Percentage

[TC_Sales ($ millions)]/[TC_Total Sales ($ millions)]

TC_Rank

RANK_DENSE([TC_Sales ($ millions)],"asc")

X

IF [Index] < 181 THEN
    SIN(RADIANS([Index]))*[TC_Rank]
ELSE
    (-[Index]/10)*[TC_Percentage]
END

Y

IF [Index] < 181 THEN
    COS(RADIANS([Index]))*[TC_Rank]
ELSE
    -[TC_Rank]
END

So now that we have created a lot of Calculated fields, we will now put this together into a Worksheet.

Worksheet

We will now build our worksheet:

You should see the following:

It looks funny I know, but fear not, we will adjust our Calculated Fields to achieve our desired results.

You should now see the following.

Now we will adjust the cosmetics:

If all goes well, you would want something like the following:

and boom we are done… we have successfully created a data visualisation combining a Radial Bar Chart and Rounded Bar Chart. You can find my data visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/RadialPlusRoundedBarChart/RadialPlusRoundedBarChart

We can also have some fun with Variations. Let us drag Sales ($ millions) onto the Size Mark. We will get the following:

or how about we drag Index onto the Size Mark, we will get the following:

Lastly, let us drag TC_Sales ($ millions) onto the Size Mark.

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 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