I have a dataTable with string values and I want to show a tooltip only for individual cells with certain values (in this case cells with a value of ‘***’). I assumed that something like this would work:
tooltip_conditional=[
{
'if': {
'column_id': col,
'filter_query': '{{{col}}} = "***"',
},
'type': 'markdown',
'value': 'This column is significant.'
} for col in data.columns
]
But it does not. If I take out the ‘filter_query’ line, it shows the tooltip on all rows and columns, but I cannot get it to limit the display to a specific value. I’ve tried different filter_query formulas (‘==’, ‘contains’, ‘in’, etc.) and nothing works.
Is this possible with tooltip_conditional?