Many argue about the radar charts, also called spider charts, due to their net-like shape. While some claim that the radar charts should not be used in dashboards, others use them to show their insights. The article What is a Radar Chart? Explained with Examples well defined the pros and cons of the spider charts:

Pros
  • It acts as an excellent tool to compare different entities easily.
  • Even if there are multiple variables to compare, we can do it with a spider graph.
  • They are simpler to understand by the audience instead of a column diagram.
  • We can distinguish different entities via colour-coding.
  • Extremely useful in drawing comparisons on the basis of different parameters
Cons
  • If there are a lot of variables to compare, then even a radar chart can get cluttered.
  • Sometimes, users find it hard to come up with an ideal data set to represent different variables together.
  • They are not ideal for making trade-off decisions or comparing vastly distinctive variables.
  • At times, the radial distance can be hard to judge and provide on-point information.

To use it or not in your projects depends on you, but if you reckon that your dashboard can benefit from the spider chart, you might want to give it a try. However, there is no straightforward way of creating such plots opposite Microsoft Excel. So, in this post, I will cover an efficient way of creating spider plots.

GOAL

For this example, a dataset I am using is Adventure Works, and it is freely available on the Internet. I would like to plot the performance of the one salesperson vs another one for each month in 2013.

RADAR PLOT DEVELOPMENT

I can split this process into three categories. First of all, we need to create circular axes in Excel. Then we need to edit them in Gimp or any other photo editor you like. Finally, we will create a spider chart in Tableau.

CREATING CIRCULAR AXIS IN EXCEL

I will not go over the entire process of creating it in Excel. The process is straightforward, and there are many resources on the Internet, for instance, this one. You need to have enough points to smooth them out to make circular axes circular. I found in my data that the maximum value that the total sales reach in a month in 2012 and 2013 for either Jillian Carlson or Jose Saraiva is about $400000 / month. So, I generated data from 0 to 400000 with the increment 4040.404, and it gave me exactly 100 points. To have some extra space beyond the 400000 axes, I added 24 points to be near the 500000 value. Then I just drew the radar plot and obtained the following plot:

On the left-hand side, you can see the generated data from 0 to 496969.7, almost 500000. Then, editing the plot using standard tools in Excel, I ended up having the following circular axes:

You can see that the axes are running from 0 to 500000 with the incremental step 50000. For the next step, I would like to remove outer axes: 450000 and 500000. At the same time, I believe that the grid is too fine, and I want to remove inner axes: 50000, 150000, 250000, 350000. I could find a simpler way to remove these axes than to use the photo editor software Gimp which is free, or you can use any other editor tools you are used to.

Editing in Gimp

I used the clone tool to remove unnecessary axes and added two months, as you can see below. I could add all month names but decided not to spend time on the routine exercise. So, I obtain the following picture.

Finally, this picture is ready to be downloaded as a background image in Tableau.

CREATING SPIDER CHART in TABLEAU

Bearing in mind that this dataset is big we want to consider only sales, order date and Full Name, which consist of First Name and Last Name. Now, it is time to create a few calculated fields:

1. Let’s extract month from Order Date; the field name is 1. Months:

DATENAME(‘month’, [Order Date])

2. Calculate the number of months in the year. I used LOD EXCLUDE, and the field name is 2. # of months:

{ EXCLUDE [1. Months], [Full Name]: COUNTD([1. Months])}

3. Create angel in radian. It measures the angle between the nearest radial axes, i.e. between months. The field name is 3. Angel:

RUNNING_SUM(
2 * PI() / SUM([2. # of months])
)
– 2*PI() / SUM([2. # of months])

I used – 2*PI() / SUM([2. # of months]) to make sure that January axis is aligned with X axis.

4. The next step is to project each value of Sales to the X and Y-axis:

4.a project to the X-axis is shown below. The field name is 4. X:

sum([Sales]) * COS([3. Angel])

4.b The project to the Y-axis is shown below. The field name is 5. Y:

sum([Sales]) * SIN([3. Angel])

5. Pull [Full Name] on Colors and [1. Months] on Details. Change the plot type to Polygon. Bring [3. Angel] to Path and set up Table Calculations by [1. Months]. Drag [4. X] and [5. Y] to Columns and Rows respectfully and set up Table Calculations by [1. Months] as well.

6. I added some filters:

7. Finally, you need to change for [3 Angel], [4. X] and [5. Y] the Table Calculation to  Compute Using [1. Months] and you should obtain the radar chart.

8. You can spice it up by adding buttons for example, but it is not a topic of this post.

TO SUM UP

A radar or Spider chart is a great tool to have in your arsenal to impress your client. Unfortunately, Tableau does not have it within its tools. To create such plots, you may need to spend more time than you might expect and use more than one software tool.

You can see from the plot how easy it is to distinguish between the performance of Jillian Carlson and Jose Saraiva. Sales of the former are not as good as the letter. However, the actual values cannot be inferred as easily as on other plots but you can use a tooltip to show the values if you need to.

I hope that one day we will find a radar plot among other tools in Tableau.

 

Boris Kushnarev
Author: Boris Kushnarev