-
-
Couldn't load subscription status.
- Fork 1.9k
Description
When redrawing using ScatterGL and modifying the array of data, Plotly seems to render only the last data object in an array of data. Here's a minimal example of the bug: http://codepen.io/anon/pen/EgjYGa. If you change scatter to scattergl, it only ends up plotting the last data object (red line) passed to it.
I've circumvented this by calling Plotly.deleteTraces then Plotly.addTraces which seems to accomplish the same thing, but causes an undesirable flicker since all the traces are getting deleted. Adding new traces before deleting the old ones seem to solve the flicker, but temporarily keeps both datasets while you're doing the swap. An example of this workaround is at the bottom of the above codepen. If you uncomment it and leave the type as scattergl, it seems to work.