Toan Hoang

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

Data

Load the following data into Tableau Desktop / Public.

MetricPathValuePosition
United States10.81
United States3600.81
United States10.81.5
United States3600.81.5
United Kingdom10.21
United Kingdom3600.21
United Kingdom10.21.5
United Kingdom3600.21.5
Canada10.551
Canada3600.551
Canada10.551.5
Canada3600.551.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 into Tableau, we are going to create the following Calculated Fields and Bins:

Create Path (bin)

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.

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:

If all goes well, you should have the following:

We will now make a few adjustments.

You should now see the following:

Now we will adjust the cosmetics:

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

and boom we are done… we 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.

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 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