Skip to content

ScatterGL redraw only draws last object #910

Closed
@kevinwuhoo

Description

@kevinwuhoo

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.

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions