Toan Hoang

Create a Radial Column Chart (Variation)

I wanted to have some fun and build up a Polar Chart, however, I had an accident and decided to run with it, and this is the resulting data visualisation. I hope you enjoy this one.

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 Sample Superstore data into Tableau Desktop / Tableau Public.

Note: If you have Tableau Desktop, you can use the Sample data source, but if you are using Tableau Public, download and load the following data source.

Once your data is loaded into Tableau, right-click on the data source and click on Edit Data Source… with the Data Source Editor open, paste the following:

Path,Distance
100,1
0,1
100,0
0,0

Note: If you are using Tableau 2020.2 or great i.e. have access to new Relationship Model, you will need to double-click on the originally pasted data source to open up before pasting in the Path Data.

You should get an error as there is no joining column, however, click on Add new join clause, go to Create Join Calculation, type 1 and click OK. Do this for the right-hand side as well. Ensure that you have Inner join selected and you should see the following:

Calculated Fields

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

@Distance from Center Parameter

@Line Weight Parameter

@Path Factor Parameter

@Spacing Parameter

Path (bin)

Distance (bin)

Order Month

DATEPART('month',[Order Date])

Index (Distance)

INDEX()

Index (Path)

(INDEX()-1) * [@Path Factor]

Step Size

3.6 / 12 * (100-[@Spacing]) / 100

TC_Order Month

WINDOW_MAX(MAX([Order Month]))

TC_Sales

WINDOW_SUM(SUM([Sales]))/4

TC_Total Sales

WINDOW_SUM(SUM([Sales]))/4

TC_Percentage

[TC_Sales] / [TC_Total Sales]

TC_Starting Point

(([TC_Order Month]-1)*360/12)

X

SIN(RADIANS(([Index (Path)]*[Step Size])+[TC_Starting Point]))*([Index (Distance)]+[@Distance from Center])

Y

COS(RADIANS(([Index (Path)]*[Step Size])+[TC_Starting Point]))*([Index (Distance)]+[@Distance from Center])

TC_Size

IF ([Index (Distance)]-1) / WINDOW_MAX([Index (Distance)]-1) <= WINDOW_MAX([TC_Percentage]) THEN
    1
ELSE
    0
END

TC_Color

IF ([Index (Distance)]-1) / WINDOW_MAX([Index (Distance)]-1) <= [TC_Percentage] THEN
    WINDOW_MAX(MAX([Order Month]))
ELSE
    NULL
END

TC_Filter

IF ([Index (Distance)]-1) / WINDOW_MAX([Index (Distance)]-1) <= WINDOW_MAX([TC_Percentage]) THEN
    TRUE
ELSE
    FALSE
END

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

Worksheet

We will now build our worksheet:

You should now see the following:

We are not going to end the Table Calculations for the X and Y objects, now be careful as this is quite delicate:

We should now see the following (this is pretty cool already, but we are only just getting there):

Now we are going to add a little colour and sizing:

You want something like the following:

Yes, it looks a little funny now, but don’t worry, the last step is coming:

We should now have the following:

The last step is to adjust the cosmetics:

We should now have our final data visualisation:

Extra Credit: Try changing the Mark Type to Circles or Lines, just for fun

and boom, we are done! I hope you enjoyed creating this data visualization and learned some cool techniques as well. As always, you can find this data visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/RadialColumnChartVariation/RadialColumnChartVariation

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