I’d like to update the data of a heatmap.
I understand that
restlye is faster than
The problem is that I cannot make it work: when I call
restyle with exactly the same data as the one I used to create the heatmap, the heatmap is completely broken.
See this codepen.