Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScatterGL redraw only draws last object #910

Closed
kevinwuhoo opened this issue Sep 7, 2016 · 4 comments
Closed

ScatterGL redraw only draws last object #910

kevinwuhoo opened this issue Sep 7, 2016 · 4 comments
Assignees
Milestone

Comments

@kevinwuhoo
Copy link

kevinwuhoo commented Sep 7, 2016

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.

@etpinard etpinard added this to the On-par gl2d milestone Sep 7, 2016
@etpinard
Copy link
Contributor

etpinard commented Sep 7, 2016

Thanks for the report.

@etpinard
Copy link
Contributor

etpinard commented Sep 7, 2016

maybe @dfcreative would be interested in looking into this.

@etpinard etpinard self-assigned this Sep 15, 2016
@etpinard
Copy link
Contributor

fixed in #947

@etpinard
Copy link
Contributor

This issue turned to be caused by the same problem as for #942

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants