In this tutorial, I will specifically discuss how to label your "polygon" chart tooltip in Tableau. I have used this for my 2021 Twitter Stats data viz. On how to create a 4-sided proportional area square chart, you can refer to the Flerlage Twins' post here without polygons. Instead of creating new Calculated Fields, the method that I am going to introduce to label the tooltip of your "polygon" chart is made possible with viz in tooltip function in Tableau. Before reading on, it is best to familiarise yourself with the below 2 ways in Tableau to create small multiples:
- Manual (used in Step 1)
- Formula (used in Step 2)
Step 1: Create the Viz in the Tooltip
- After creating your "polygon" chart, create the viz in the tooltip by putting them in their quadrant corresponding to your chart.
- I placed them in their place by determining where their x (columns) and y (rows) are manually using the following formula:
- For Column:
- IF [Pivot Field Names]="Detail Expands" THEN 1
- ELSEIF [Pivot Field Names]="Hashtag Clicks" THEN 2
- ELSEIF [Pivot Field Names]=" Url Clicks" THEN 2
- ELSEIF [Pivot Field Names]="User Profile Clicks" THEN 1
- END
- For Row:
- IF [Pivot Field Names]="Detail Expands" THEN 2
- ELSEIF [Pivot Field Names]="Hashtag Clicks" THEN 2
- ELSEIF [Pivot Field Names]=" Url Clicks" THEN 1
- ELSEIF [Pivot Field Names]="User Profile Clicks" THEN 1
- END
Step 2: Include the Value Used for "Compute Using" also as the Filter in the Tooltip
- Please note that you can refer to Andy Kriebel's tutorial here or Ryan Sleeper's post here on creating small multiples in Tableau with "Compute Using".
- In this example, I have used <MONTH(Time)>
Step 3: Publish Your Chart with Tooltip!