Toan Hoang

Drawing Orbit Charts in Tableau

Since releasing our popular Satellite Chart Tutorial, see Drawing Satellite Charts and Variations in Tableau, I have received numerous request for help in creating a layered version of this chart, or an Orbit Chart. As such, in this tutorial, we will go through the process of creating an Orbit Chart in Tableau.

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.

CountryPathPercentage of Sales
United Kingdom10.4
United Kingdom3610.4
United States10.3
United States3610.3
Germany10.2
Germany3610.2
France10.1
France3610.1

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:

Path (bin)

Distance from Center

Create the following parameter with:

Index

INDEX()-1

TC_Percentage of Sales

WINDOW_MAX(MAX([Percentage of Sales]))

TC_Rank

RANK_UNIQUE([TC_Percentage of Sales],'asc')

X

SIN(RADIANS([Index]))*([Distance from Center]+[TC_Rank])

Y

COS(RADIANS([Index]))*([Distance from Center]+[TC_Rank])

Size

IF [Index]>=(360*[TC_Percentage of Sales]) AND [Index]<(360*[TC_Percentage of Sales])+1 THEN
    [TC_Percentage of Sales]
ELSE
    0
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 see something like the following:

Now, you have to admit, this looks pretty cool, but we are now going to update the Table Calculations for X and Y.

If all goes well, you should see the following:

And now we need to adjust the cosmetics by:

You should now see the following:

and boom, we are done… nice and simple and a small adjustment from the previous tutorial on drawing Satellite Charts in Tableau. And like the previous tutorial, let us have some fun with some variations.

Orbit Chart / Variable 1

Change the Mark Type to Circle.

Also try changing the Mark Type to Shape and exploring what can be done, literally, load an image of a comet and see what it looks like, or potentially a planet. Now that I think about it, set the background as transparent and have an image of the Sun in the background.

Orbit Chart / Variation 2

Take the original and change Size to IF [Index]<(360*[TC_Percentage of Sales])+1 THEN 1 ELSE 0 END for the following:

are we having fun yet? This is a variation of a Radial Chart Chart.

Orbit Chart / Variation 3

For our final variation, take the original data visualisation and change:

X

SIN(RADIANS([Index]*[TC_Percentage of Sales]))*([Distance from Center]+[TC_Rank])

Y

COS(RADIANS([Index]*[TC_Percentage of Sales]))*([Distance from Center]+[TC_Rank])

Size

IF [Index] = 360 THEN 1 ELSE 0 END

You should now see the following:

I was going to write a blog on Radial Lollipop Charts, so here you go.

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