Plotly fails when using "scattergl" and value greater than 2^24 [Only on M1]
When plotting using Plotly.newplot() and type scattergl on M1 machine, the plotting fails if the value of x-axis is greater than 2^24. Example:
var data = [
{
x: [16777217],
y: [1],
type: "scattergl",
}
];
Plotly.newPlot('myDiv', data);

The data gets plotted on the margin which cannot be zoomed/panned. (16777217 is 2^24 + 1) Attached screen shot. The issue only happens on M1 machine. On Intel hardware everything works well.
The same issue here.
This issue happens only when using the WebGL mode. The plot becomes normal when manually switched back to the SVG mode.
This reproduces in both Chrome and Safari on M1 devices, despite them using different WebGL backends. Could plotly be sending different WebGL commands based on the architecture?
Or is it regl?