Plotly.js: ScatterGL redraw only draws last object

Created on 7 Sep 2016  路  4Comments  路  Source: plotly/plotly.js

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.

bug

All 4 comments

Thanks for the report.

maybe @dfcreative would be interested in looking into this.

This issue turned to be caused by the same problem as for https://github.com/plotly/plotly.js/issues/942

Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryaan picture bryaan  路  3Comments

nicolaskruchten picture nicolaskruchten  路  3Comments

boleslawmaliszewski picture boleslawmaliszewski  路  3Comments

HunterMcGushion picture HunterMcGushion  路  3Comments

chriddyp picture chriddyp  路  3Comments