A bullet graph is a variation of the bar graph and is used for comparing the performance of a primary measure with one or more other measures. The bullet graph was developed by data analyst and author Stephen Few to replace radial dashboard gauges and meters that were limited in displaying multiple pieces of information.
A simple use case of the bullet graph is to track actual versus forecasted revenue for a product or market. In this guide, you will take up one such use case and learn how to build a bullet graph in Tableau.
We’ll be using the coffee chain dataset available in the Tableau repository to create the bullet graph. The goal is to visualize actual sales versus budgeted sales for different markets using the bullet chart in Tableau.
Product Typevariables into the Columns shelf.
Budget Salesvariables into the Rows shelf. We can also swap this arrangement between the rows and columns shelves.
In the Show Me option, we can see that the bullet graph is enabled, and clicking on it will generate the following output.
Budget Sales. Also, the
Salesvariable is not reflected with the bullet graph, and it is now in the Detail shelf of the Marks pane. Another problem is that the bar is representing budgeted sales, and not actual sales. This is not an ideal chart as normally, we would compare actual sales against the budget. To make this correction in the above chart, we need to swap the reference line. To do this, right click on the Budget Sales axis and select Swap Reference Line Fields, as shown in the chart below.
The above steps will produce the chart below. Now we can see that the bar represents the actual sales, whereas budgeted sales are represented by the vertical line mark against each bar.
The insight we can gain from the chart is that for the central market, actual sales are higher than the budget for every product type except espresso.
Budget Salesis in the details shelf. By default, these reference lines represent sixty and eighty percent of the
Budget Salesand are highlighted by the shaded grey color beneath the blue bar. It is possible to change the formatting of the reference lines for better representation. To do this, the first step is to right-click on the budgeted sales vertical line, then click Edit, as shown below.
A pop-up window will appear to edit the reference line. We select the second option of Formatting and the thickness of the line we want, as shown below.
There are also options Fill Above and Fill Below that can be selected.
• Fill Above: This will fill the selected color from the reference line to the edge of the graph.
• Fill Below: This will fill the selected color up to the reference line.
In this guide, you learned about building a bullet graph in Tableau. You also learned formatting options to better display the components of the chart. Bullet graphs are useful in visualizing performance data, similar to the data we covered in this guide, and this knowledge is useful in many business scenarios.
To learn more about visualization and data analysis using Tableau, please refer to the following guides: