OHCL Charts in Tableau

OHCL Charts in Tableau

In this Tableau Quick Tip, we are going to create an Open-High-Low-Close (OHLC) chart in Tableau, we will do this within 5 mins or less.

Data

Let us start by loading the following data in Tableau Desktop / Tableau Public:

Snap

Note: this is SnapChart data as of the 22nd November 2019.

Calculated Fields

Create the following Calculated Fields:

Spread: Close-Open

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

Spread: Low-High

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

I also require us to download and load two shapes into Tableau:

and that is it, let us now build our worksheet.

Worksheet

We will now create our worksheet:

  • Change the Mark Type to Gantt.
  • Drag the Date onto the Filter Shelf.
  • Filter for the Last 3 Months.
  • Set the Anchor relative to 24/11/2019.
  • Drag Date onto the Columns Shelf.
  • Right-click on this object and select Exact Date and then select Discrete.
  • Drag Spread: Low-High onto the Size Mark.

You should now have the following:

No alt text provided for this image

We will now add our open and close icons:

  • Drag Measure Values onto the Rows Shelf.
  • Drag Measure Names onto the Filter Shelf and select Open and Close only.
  • In the Measure Values Mark Panel. Change the Mark Type to Shape. Drag Measure Names onto the Shape Mark. Assign Close and Open to the appropriate Shape.
  • Right-click on Measure Values and select Dual Axis. Right-click on the axis header and select Synchronise Axis. Double-click on the axis header and uncheck Include Zero.
  • In the SUM(High) Marks Panel, reduce the size.

You should now have the following:

No alt text provided for this image

We will now adjust the cosmetics:

  • Drag Spread: Open-Close onto the Colour Mark. Adjust the colour so that below 0 is red, above 0 is green.
  • Hide the Axis Headers.
  • Set Grid Lines to None.
  • Set Row Dividers and Column Dividers to None.
  • Adjust the Tooltips.

You should have the following:

No alt text provided for this image

and boom, we are done. We have created our Quadrant Plots in Tableau. You can find my data visualisation Tableau Public at HERE

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.


要查看或添加评论,请登录

Toan Hoang的更多文章

  • Chessboard Magic: October 2024 Update

    Chessboard Magic: October 2024 Update

    Yes, I do a little more in life than just Tableau..

    15 条评论
  • LEANING IN: How Embracing My Hobbies Shaped My Life

    LEANING IN: How Embracing My Hobbies Shaped My Life

    In life, we all have hobbies and interests that we dabble in, but often they remain just that—casual pastimes that we…

    3 条评论
  • Creating Spiral Column Charts in Tableau

    Creating Spiral Column Charts in Tableau

    This is something that I have been wanting to create for a while, but alas, I put this on my backlog until I could…

  • Tableau Twelve-Step Programme for 2020

    Tableau Twelve-Step Programme for 2020

    With every new year comes new challenges, new opportunities and, more importantly, a chance of exploring new…

    6 条评论
  • TL;DR - 5 Categories of Tableau Deliverables

    TL;DR - 5 Categories of Tableau Deliverables

    I have designed and delivered Tableau Solutions for a variety of clients, and while each client requirements differ, I…

    5 条评论
  • Creating Jitter Bar Charts in Tableau

    Creating Jitter Bar Charts in Tableau

    Yes, I create this data visualisation a little while ago, and while hesitant about it, decided to write a nice, quick…

    2 条评论
  • Drawing Neon Bar Charts in Tableau

    Drawing Neon Bar Charts in Tableau

    Sometimes you just have to have fun with Tableau, and given I was too preoccupied to participate in the Music themed…

    2 条评论
  • Tableau Magic on Udemy

    Tableau Magic on Udemy

    After months of planning, endless preparation, and loads of refilming, I am finally ready to make public my first Udemy…

    27 条评论
  • Tableau QT: Shape Bar Chart

    Tableau QT: Shape Bar Chart

    This is a Quick Tip on how to build a Shape Bar Chart in Tableau, so less reading and more jumping in. We are going to…

  • Drawing Daisy Charts in Tableau

    Drawing Daisy Charts in Tableau

    On my way home from the London Tableau User Group (TUG) I was looking at Twitter and got inspiration from Kevin…

    8 条评论

社区洞察

其他会员也浏览了