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
{{ message }}
Repository navigation
Error when adding a new trace to a plot with Plotly.react #2602
After updating to plotly.js 1.37.0, I'm getting the following error when adding a trace to a plot that already has at least one trace. This then seems to sometimes cause the trace to not render.
Error while plotting: TypeError: Cannot read property '0' of undefined
at Object.plots.supplyDefaultsUpdateCalc (plotly.js:143231)
at Object.exports.react (plotly.js:123205)
at factory.js:100
Activity
alexcjohnson commentedon May 2, 2018
Thanks for the report! I'll fix this, came in with #2577 I think.
etpinard commentedon May 2, 2018
Thanks for the very clear report @tropys !
fix #2602 - Plotly.react add/remove traces bug