Toan Hoang

Drawing Candlestick Charts in Tableau

I have been doing alot of research for an article that I am writting about the Salesforce Acquisition of Tableau. As such, I was looking at the Stock Prices and thought that I would grab historical Tableau Stock Data and build a Candlestick chart, and hence, I decided to write a tutorial for you all to enjoy.

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

We will start by downloading and loading the following data into Tableau Desktop / Tableau Public:

Note: this data comes from https://www.macrotrends.net

Calculated Fields

We will start off by creating the following Calculated Fields:

Spread – High Low

SUM([Low])-SUM([High])

Spread – Open Close

SUM([Close])-SUM([Open])

Yep, that is all we are going to need, so let us create our Worksheet.

Worksheet

We will now build our data visualisation:

You should now have the following:

We will now finish this off by adjusting the cosmetics:

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

Now for the final touches:

And you should have the following, yep, I added an annotation for when Salesforce acquired Tableau.

and boom we are done, we can now browse the Tableau Stock price with this nice and nifty visualisation; you can find my visualisation on Tableau Public here: https://public.tableau.com/profile/toan.hoang#!/vizhome/CandlestickCharts/CandlestickChart

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