Is it possible to use if else statement in texttemplate inside a go.Heatmap Trace


i use
fig.add_trace(go.Heatmap(x = spearman.columns, y = spearman.index, z = spearman.values, text = pearman.round(1).values, zmin=-1, zmax=1, texttemplate="%{text}",textfont={"color": "black"}, colorscale=sns_cs, hoverongaps = False,), row=r, col=c)

and i wonder if it is possible to use some kind of if else statements inside texttemplate="%{text}" in order to hide a specific value or display another text?

Hi @till90, sometimes I use something like this, could work in your case as well: