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 Flerlage (@FlerlageKev) and Rajeev Pandey (@rajvivan), so I thought I would design and write up my own version of this visualisation, please welcome the Daisy Chart.

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 satellite charts into production.

Data

Load the following data into Tableau Desktop / Public.

Metric,Path,Value,Position
United States,1,0.8,1
United States,360,0.8,1
United States,1,0.8,1.5
United States,360,0.8,1.5
United Kingdom,1,0.2,1
United Kingdom,360,0.2,1
United Kingdom,1,0.2,1.5
United Kingdom,360,0.2,1.5
Canada,1,0.55,1
Canada,360,0.55,1
Canada,1,0.55,1.5
Canada,360,0.55,1.5

Note: we need four records for each Country as we are going to be drawing lines and using densification to get more points on our view. For more information, check out our article on Data Densification.

Calculated Fields

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

Path (bin)

? Right click on Path, go to Create and select Bins…

? In the Edit Bins dialogue window:

? Set New field name to Path (bin)

? Set Size of bins to 10

? Click Ok.

Index

INDEX()-1

TC_Value

WINDOW_MAX(MAX([Value]))

TC_Position

WINDOW_MAX(MAX([Position]))

X

SIN(RADIANS([Index]*(360/WINDOW_MAX([Index]))))*[TC_Position]

Y

COS(RADIANS([Index]*(360/WINDOW_MAX([Index]))))*[TC_Position]

Zero

0

Color

IF [Index] < (WINDOW_MAX([Index])*[TC_Value]) THEN
    IF [TC_Value] >= 0.8 THEN
        "Green"
    ELSEIF [TC_Value] <= 0.2 THEN     
        "Red"
    ELSE
        "Amber"
    END
ELSE
    "Grey"
END

Note: We are hardcoding the colors thresholds, but you can have some fun and make these dynamic.

So now that we have created a lot of Calculated fields, we will now put this together into a Worksheet.

Worksheet

We will now build our worksheet:

? Change the Mark Type to Line.

? Drag Metric onto the Color Mark.

? Drag Metric onto the Columns Mark.

? Drag Path (bin) onto Columns.

? Right-click onto this object and ensure that Show Missing Values is checked.

? Drag this object onto the Detail Mark.

? Drag Position onto the Path Mark.

? Right-click on this object and select Dimension.

? Drag X onto Columns.

? Right-click on the object, go to Compute Using and select Path (bin).

? Drag Y onto Rows.

? Right-click on the object, go to Compute Using and select Path (bin).

If all goes well, you should have the following:

We will now make a few adjustments.

? Drag Color onto the Color Mark.

? Right-click on the object, go to Compute Using and select Path (bin).

? Drag Zero onto Rows.

? Right-click on the object and select Dual Axis.

? In the Y Δ Mark Panel.

? Remove Measure Names from the Color Mark.

? In the SUM(Zero) Mark Panel.

? Change the Mark Type to Circle.

? Remove Measure Names from the Color Mark.

? Drag Zero onto the Size Mark.

You should now see the following:

Now we will adjust the cosmetics:

? Set the Grid Lines to None.

? Set the Row Divider to None.

? Set the Column Divider to None.

? Hide the X-Axis.

? Hide the Y-Axis.

? Edit the Colors.

? Increase the Size of the Circle.

? Add a Label to the Circle.

? Add Transparency to the Circle.

If all goes well, you want to end up with the following:

and we are done and have successfully created this fun data visualisation. You can find my data visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/DaisyCharts/DaisyChart

Extra Credit: Try changing the value Path (bin) and see the results, and adjust the size of the Line Mark.

Note: This tutorial was published on https://tableaumagic.com as well as other fun Tableau related articles.

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.

Apurva Sherke

Data Engineer II at Amazon | Customer Obsessed

6 年

Awesome!

回复
Nishant Pushkar

Data Analytics & Data Visualization - Module Lead, Passionate About Data Science

6 年

Wow !!!!

回复
Lalitha Bhamidipati

Sr Business Intelligence Engineer at Amazon

6 年

wow! this is really amazing!

Shashank Ojha

Deciphering Data at Splunk | BI | Tableau

6 年

Always curious when it comes to your articles. Would be really great to know "How you approach & conceptualize such design challenges ?" I know that would be a secret recipe of such posts :)?

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

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