score:1

I suggest and alternate method for plotting a million datapoints, plotly offers webGL for plotting this. Get to know more about this by clicking here.

So I have implemented a solution for your case. But there is a minor predicament, when I plot, the actual data provided, all I get is a single line of markers, I checked and its due to plotly being unable to handle this large number of digits.

To handle this. We need to reduce the number length after the decimal from 16 to 9, then the data is getting plotted properly.

So the number 1439856801592000.0 should be reduced to 801592000.0, then I am getting the desired solution.

Please refer the below codepen, which implements scattergl, try it out and let me know if this solves your problem!

Codepen Demo


Related Query