See https://codepen.io/arnog/pen/YgZdEZ
- Create a heatmap plot with about 500 x 500 elements
- Configure the plot with
scrollZoom = true and zsmooth = 'fast'
- Use the mouse wheel to zoom in rapidly into the plot
Result:
- the plot is not zoomed in and the console displays "Uncaught RangeError: Invalid array length"
The array being created is the pixel array in which to draw the interpolated heatmap at traces/heatmap/plot.js:238
The problem seems to be that imageWidth and imageHeight are used here and later in the function, perhaps instead of canvasW and canvasH.
See https://codepen.io/arnog/pen/YgZdEZ
scrollZoom = trueandzsmooth = 'fast'Result:
The array being created is the pixel array in which to draw the interpolated heatmap at traces/heatmap/plot.js:238
The problem seems to be that
imageWidthandimageHeightare used here and later in the function, perhaps instead ofcanvasWandcanvasH.