In this video I will provide a method in which you can place your bar chart labels above the bars in Tableau. This technique is based off Adolfo Hernandez’s technique with a little more explanation and additional alternatives for the zero line. Make sure to add this to your bar chart repertoire!
If you want to follow-along with the video, you can download the data at this link:
https://www.basketball-reference.com/leagues/NBA_2021.html
In the video I exported data from the “Per Game Stats” section but you are free to download from whichever stats section you’d prefer.
High Level Steps:
Make sure to watch the video to get more in-depth:
- Drag your measure to columns (e.g., 3P)
- Drag your dimension to Rows (e.g., Team)
- Sort the measure to descending value
- Place the Team and 3P on the label and format accordingly
- Create a placeholder directly on the Columns shelf : AVG(0))
- Drag the placeholder to the bottom of the visual onto the 3P axis to make a combined axis visual
- In the Measure Value area make sure that AGG(AVG(0)) is placed above SUM(3P)
- Uncheck “Show Headers” for the Team dimension and for the axis at the bottom of the visual
- Format the visual to remove unnecessary borders and lines
- Make the following adjustments on the Label:
- Marks to Label: Min/Max
- Scope: Pane
- Field: Measure Values
- Options:
- Allow Labels to Overlap Other Mark
- Label Minimum Value
- Change the color of the bar chart borders to the background color of your visual in order to camouflage the tiny bar created by AVG(0)
- Uncheck “Show Header” for AVG(0)
When it’s all said and done you have a fresh new take on adding labels to your bar chart that can add differentiation to your overall visual!
For more detail on how to add a zero line (which I believe is important for bar charts in general and is a good design practice), watch the video.
Please like and subscribe on the Anthony B. Smoak YouTube channel.
All views and opinions are solely my own and do not necessarily reflect those of my employer
Do Great Things with Your Data!