You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In brief, plotly.js mutates a few parts of the user data during a .plot call in order to skip a few auto-type routines in subsequent plot / restyle / relayout calls.
For example, layout.xaxis.type if not set by the user during the first .plot call gets filled to its auto-type value. Therefore subsequent .plot call won't have to dive into the data arrays to try to figure out what axis type the user is trying to plot.
This user data mutation paradigm is confusing, not ideal or even flat-out wrong, but it will stay us until at least v2.0.0. So I will close this issue. Our apologies.
I'm using plotly.js 1.12.0, and in my browser console I type:
this works as expected. Now, according to the documentation I can completely replace the data and then redraw, so I do:
Which does not update the plot, but generates the following console error:
For me, this is happening on Ubuntu 14.04 in both Chrome (51) and Firefox (47).
Perhaps it is expected that if you replace the numeric data values with strings, then
redraw
will not work?Thank you for maintaining an open source project!
The text was updated successfully, but these errors were encountered: