Plotly.js: BUG: GL2D scatterplot marker size and redrawing/restyling breaks plot

Created on 22 Mar 2017  路  5Comments  路  Source: plotly/plotly.js

In this example, I'm using the LATEST version of plotly https://cdn.plot.ly/plotly-latest.min.js I change the size of the marker to an array. Some Markers should get bigger and some should get smaller. The result is that they move in x and y coordinates and get slightly smaller. Unless, I change the symbol of the marker. The 'redraw' or 'restyle' function cleans it up

EXAMPLE:
latest version of plotly bug

CODEPEN:
http://codepen.io/destrada/pen/xqYJYQ


When I switch to version 1.5.0 https://cdn.plot.ly/plotly-1.5.0.min.js of Plotly, it responds correctly to resizing the Markers and redrawing

EXAMPLE:
version 1 5 doesn t break marker size

CODEPEN:
http://codepen.io/destrada/pen/mWLRzZ

bug

All 5 comments

Ok. Interesting. Have you tried using restyle instead of the soon to be deprecated redraw?

I updated the codepens by switching it to restyle instead of redraw and it has the same results

Thanks for the report!

This probably a side-effect of @dfcreative 's https://github.com/plotly/plotly.js/pull/1398

Oh, yes, that might be. Gotta check in details.

[email protected] fixes that.

Was this page helpful?
0 / 5 - 0 ratings