The values that I plotted on the heatmap range from 0 to 2.5. However, the color bar does not show the correct range, and the colors are not rendering properly. All values above 79% should be red, but that is not happening. For example, one of the data points is 1.3, which is 52% of the range, but it is still red.
var heatmapData = [{
x: x,
y: y,
z: z,
type: ‘heatmap’,
colorscale: [
[0, ‘white’],
[0.50, ‘white’],
[0.50, 'grey'],
[0.79, 'grey'],
[0.79, 'red'],
[1.0, 'red']
],
colorbar: {
autotick: false,
tick0: 0,
dtick: 1,
title: colorTitle,
len: 0.5,
},
zmin: minMax[0],
zmax: minMax[1]
}];