A shared axis chart in Tableau is a chart that shares one axis among multiple measures. This chart can be used when the measures have similarly ranged values, and can be presented using one mark and one scale.
In this recipe, we will compare field goals made vs field goals attempted by Phoenix Suns players in the NBA 2009 season by using a shared axis chart.
To follow this recipe, open B05527_02 – STARTER.twbx
. Use the worksheet called Shared Axis
, and connect to the Player Stats (NBA Players Regular Season 2009)
data source.
The following are the steps to create a shared axis chart:
Player Name
, and provide the following formula that concatenates [First Name]
and [Last Name]
:A shared axis chart, as the name implies, is a chart that shares the same axis with multiple measures. One way to do this in Tableau is by dragging another measure to an existing measure's axis.
In this recipe, we started by creating a bar chart with the measure Field Goals Made. Field Goals Made is a continuous measure, thus creates an axis when placed onto the Columns shelf.
To share the axis this field has created with other measures, the other measures simply need to be dropped on top of the existing axis. When another measure is dragged on top of the existing axis, a faint double ruler icon appears on the axis. When you see this, release the mouse button and drop the field onto the view.
Once a second measure is added to the chart, there are a few things that happen:
If you want more than two measures to share the same axis, simply keep on dragging the measures onto the existing axis, or add the measures directly to the Measure Values shelf.
A shared axis chart is useful when you want to show multiple measures in the same graph. You can use a shared axis chart when you want to display the different measures using the same mark, and using the same range in axis. This is important to note, because when you change the mark in a shared axis chart, you change the mark for all the measures. A change in axis (range, size, and format) also affects all the measures in the graph.
3.142.12.207