Tableau Tutorial: Filled Circle

Tableau Tutorial: Filled Circle

I am always looking for fun ways to use Tableau, and in this tutorial, I am going to show you how to build Filled Circles. This tutorial is nice and quick and should take around 5-10 minutes. So let us get started.

The Data

Create the following in Excel and then paste it into Tableau:

No alt text provided for this image

Quite a small data source, but let us now create our Calculated Fields.

Calculated FieldsWe will create a Path (bin) object by:

  • Right click on Path
  • Go to CreateBins…
  • In Edit [Path] set the Size of bins to 1
  • Click Ok
No alt text provided for this image

The Path (bin) will allow us to use a table calculation to create additional data points between 1 and 360.

Note: we are using the Path (bin) for the densification of data which will give us more points to work with. One thing to make sure of is that you check the Show Missing Values.

We will now create the following Calculated fields.

Index: We are going to use this to draw the individual points.

No alt text provided for this image

WC_PI: This is used to get the value of PI and make it available to the densified data.

No alt text provided for this image

WC_Value: This is used to make the Value available to the densified data.

No alt text provided for this image

WC_Depth: This is used to calculate how far down the circle we should straighten off.

No alt text provided for this image

X: This is used to draw the points on the X axis.

No alt text provided for this image

Y: This is used to draw the points on the Y axis.

No alt text provided for this image

Note: We have some code commented out, we will get back to this later.

Y 2: This is used to draw the points on the Y axis, but does not have a flattening effect.

No alt text provided for this image

Color: This is used to color the Filled Circles.

No alt text provided for this image

Now that we have our variables created we are not going to build our worksheet.

Note: I use the prefix WC so that I can recognise when a Calculated Field is a Table Calculation.

The Worksheet

Let us create our worksheet.

  • Drag Path (Bin) onto the Details Mark
  • Drag KPI onto Columns
  • Drag WC_Value onto Columns. Right Click on WC_Value, click Compute Using, Select Path (Bin)
  • Drag X onto Columns. Right Click on X, click Compute Using, Select Path (Bin)
  • Drag Y 2 onto Rows. Right Click on Y 2, click Compute Using, Select Path (Bin)
  • Drag onto Rows. Right Click on Y, click Compute Using, Select Path (Bin)
  • Right click on Y and select Duel Axis. Right click on the Y axis and select Synchronize Axis
  • Remove Measure Names from all the Color Mark

Note: Make sure the Path (Bins) have Show Missing Values selected. Without this, we won’t be able to get our additional values to draw our shapes.

We should now see the following:

No alt text provided for this image

Now we will format our Dashboard:

  • Right click on all the XY and Y 2 Axis and untick Show Header
  • Format and remove the background lines.
  • In the Mark Type select Polygon. Control click and Drag (to copy) Path (Bin) to the Path Mark
  • Click on Y in the Marks Panel. Drag Color onto the Color Mark. Click on Color and change colours to match the text. Change the Border Color to White.

Keep on formatting until you have something like the following:

No alt text provided for this image

And that is a wrap. A nice, simple, and fun way of displaying KPIs. I hope you enjoyed this quick blog, do let me know how you get along @thoang1000 or comments below.

P.s. Now for extra credit, edit the Y object by removing the comments to get a nice fun wave effect, a little buggy, but I will fix it soon.

Website: www.toanhoang.com, Twitter: thoang1000

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

Hi Toan. This is great wizz but It seams that 20 and 80 % are not represented correctly in the circles. 20% is more like 10% and 80% is closer to 90%. Is there a way to adjust position of lever to be more accurate?

To view or add a comment, sign in

More articles by Toan Hoang

  • Chessboard Magic: October 2024 Update

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

    15 Comments
  • 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 Comments
  • 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

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

    6 Comments
  • 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

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

    5 Comments
  • 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 Comments
  • 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 Comments
  • 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 Comments
  • 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…

Others also viewed

Explore content categories