添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
I have encountered this error: Uncaught TypeError: Cannot read property ‘uid’ of undefined
It happens when I hide one of the traces on my plot by clicking it on the legend and then trying to do a Plotly.react which may remove the hidden trace from the traces array.
The only way I can find to fix it is to purge the plot before updating the traces array.
This error still appears if I turn the trace back on via the legend before the Plotly.react is triggered.
Can anyone please advise?
Cheers

I am also encountering this bug. I have implemented continuous error shading (as demonstrated here: https://plot.ly/javascript/continuous-error-bars/ ), and have made the shading toggle-able by a button on the plot. I am also using jquery to update the plot and fetch new data from a database when different options are chosen (the selection menus are not part of the plot, I built them manually elsewhere on the webpage).

When I make the shading visible, and deselect one of the traces (and its shaded error) by clicking in the legend, and then choose another option for the plot, causing it to reload data and call “react”, I get the same error. Also resolved by using “newPlot”, which I’d prefer not to do. Any ideas?