Toan Hoang

Drawing a WiFi Symbol

I do like having some fun with Tableau and in this we are going to use Data Densification to draw a simple WiFi Symbol. This will be quick, fun and hopefully will introduce some new techniques.

Note: As always never choose a data visualisation type and try to fit your data into it, instead, understand your data and choose the best visualization for your data consumers.

Data

Load the following data into Tableau Desktop / Public.

RingLevelPath
A10
A1181
B20
B2181
C30
C3181

Note: we need two records for each Country as we are going to be drawing lines and using densification to get more points on our canvas. 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, Bins and Parameters:

Create Path (bin)

Create a Parameter called Width

Let us now create the following Calculated Fields.

Index

INDEX()-1

TC_Starting Point

WINDOW_MAX(
    MAX(
        IF [Level] = 1 THEN
            0.2
        ELSEIF [Level] = 2 THEN
            0.6
        ELSE
            1
        END
    )
)

X

IF ([Index] < 91) THEN
    SIN(RADIANS([Index]))*[TC_Starting Point]
ELSE   
    SIN(RADIANS(181-[Index]))*([TC_Starting Point]+[Width])
END

Y

IF ([Index] < 91) THEN
    COS(RADIANS([Index]))*[TC_Starting Point]
ELSE   
    COS(RADIANS(181-[Index]))*([TC_Starting Point]+[Width])
END

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 now see the following:

Now we just need to adjust the cosmetics:

and here you go…

and boom, we are done. You can find this visualisation on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/WiFi_4/WiFi

Now, while this may look like this is just for fun, given we have transparent backgrounds, we can create a dynamic version of this visualisation as a background for a Scatter plot, as an example.

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