How to change the tooltip behavior in Tableau for sheets with multiple cards

Tableau has two tooltip behaviors

  1. Responsive – Show tooltips instantly
  2. On Hover – Show tooltips on hover

The default is Responsive. For workbooks published to Tableau Server, I find the behavior On Hover works best with the viz-in-tooltip feature.

However, changing the tooltip behavior from Responsive to On Hover is complicated if there are multiple cards on the worksheet because Tableau only allows you change the tooltip behavior on the All card which then causes the tooltips to reset on all the other cards.

multiple_marks_cards
Sheet with multiple cards
disabled_tooltip_setting
Disabled tooltip setting on SUM(Sales) card

To avoid this it is possible to edit the .twb directly. To change the tooltip behavior for a worksheet called Complex Chart, follow these steps:

  1. Backup the .twb in case of errors.
  2. Open the .twb in Notepad++ (or another text editor) and search for the worksheet tag with the name attribute set to Complex Chart:
    worksheettag
  3. Collapse the tags until you end up with something like this:
    worksheettag-responsive
  4. Before the closing table tag add in a tooltip-style tag with the tooltip-mode attribute set to sticky:
    workbooktags
  5. Save and close the .twb file. Re-open in Tableau and the tooltip behavior for the sheet Complex Chart will now be On Hover.

The tooltip-style tag with the attribute tooltip-mode=’sticky’ is what changes the tooltip behavior to On Hover for all the cards.