Plotly.js: Error when adding a new trace to a plot with Plotly.react

Created on 2 May 2018  路  2Comments  路  Source: plotly/plotly.js

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

Recreated with codepen: https://codepen.io/steph_curried/pen/gzWBQE
I had to use chrome dev tools console, codepens console does not show the error message.

bug

All 2 comments

Thanks for the report! I'll fix this, came in with #2577 I think.

Thanks for the very clear report @tropys !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HunterMcGushion picture HunterMcGushion  路  3Comments

n-riesco picture n-riesco  路  3Comments

jonmmease picture jonmmease  路  3Comments

etpinard picture etpinard  路  3Comments

boleslawmaliszewski picture boleslawmaliszewski  路  3Comments