Dash Heatmap colors based on Hover values

Hi @andrew_from_ita and welcome to the forum :tada:

If I understand it correctly, what you want is that the color of the cell changes only when you are hovering over it? Is that right?

If that’s what you want, you can try using ‘hoverData’ as input: Input(component_id, 'hoverData')
and the figure as both state and output.

Maybe this thread is helpful as well if you don’t want to update the whole figure: Is it possible to update just `layout`, not whole `figure` of Graph in callback? - #14 by sjtrny

If you need more help, could you share a MRE?

Thanks!

1 Like