How to combine two heatmaps?


I wonder, how to combine two or more heatmaps to one plot. Lets have two data with two different z of same range with two different (red and blue) color scale. A heatmap should plot the color with higher z value. Is it possible?
This is example I tried to make but it shows only the second data.

That’s the intended behavior where the traces are plotted in the order they are inputted in the data array passed to Plotly.newPlot.

Not using a plotly.js attribute. You’ll have to set the items in the 2nd trace that you don’t want to see to nulls` like in