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 and simple tutorial about how you can create these in Tableau, so do enjoy and let me know how it goes?

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.

This article was originally published on TableauMagic.com

Data

Download and load the following data into Tableau Desktop / Tableau Public.

Order Data Source

Note: If you have Tableau Desktop, just use your sample Superstore data source.

Calculated Fields

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

Columns

RANDOM()

Note: The RANDOM() function is an undocumented function. So please use carefully, however, there are quite a few ways of generating random numbers in Tableau.

Random

RANDOM()*1

LOD_Bar Height

{FIXED [Region]: SUM([Sales])} / {FIXED : SUM([Sales])}

It is always good to have some fun with LOD expressions.

Rows

[Random]*[LOD_Bar Height]

Worksheet

We will now build our first worksheet:

  • Change the Mark Type to Circle.
  • Drag Region onto the Color Mark.
  • Drag Region onto Columns.
  • Drag Product Name onto the Detail Mark.
  • Drag Columns onto the Columns Shelf. Right-click on this object and select Dimension.
  • Drag Rows onto the Rows Shelf.
  • Right-click on this object and select Dimension. Drag Sales onto the Size Mark.

If all goes according to plan, you should see the following:

No alt text provided for this image

Now we will adjust the cosmetics:

  • Draw LOD_Bar Height onto Columns and convert to a Discrete Dimension. Right-click on this object set the format to 1 Decimal Place Percentage.
  • Select Hide the Field Labels for Columns.
  • Format the Headers.
  • Hide the Row Dividers.
  • Hide the Column Dividers.
  • Hide the Grid Lines.
  • Hide the Zero Lines.
  • Set the Opacity to 50%.
  • Adjust the Size.

and if all goes well, you should now have the following:

No alt text provided for this image

Now to have some variation, swap the rows and columns:

No alt text provided for this image

or you can reverse the direction:

No alt text provided for this image

and boom, we are done, you can find my data visualisation on Tableau Public.

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 want to learn more about Creating Bespoke Data Visualisations in Tableau, do check out our course on Udemy at https://www.udemy.com/course/creating-bespoke-data-visualisations-in-tableau

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

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 条评论
  • 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…

  • 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 条评论
  • 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 条评论

社区洞察

其他会员也浏览了