After migrating to plotly.js@**1.34.0** and react-plotly@**1.4.0** axes are not being redrawn after changing the number of axes in ```layout```. ### Before:  ### After:  https://codepen.io/igorpejic/pen/yvjxMY?editors=1010 I have tried adding the datarevision argument, but it didn't help. (Let me know if this is a proper fit for react-plotly.js or I should post it to plotly.js)
Activity
nicolaskruchten commentedon Feb 21, 2018
This is the right place, and thanks for the easy to see demo! I'll try to get a fix or answer for you this week.
nicolaskruchten commentedon Feb 21, 2018
@alexcjohnson is this one of those cases where
Plotly.reactneeds a bit of extra help to clean up axes?alexcjohnson commentedon Feb 21, 2018
Looks like a plotly.js bug, it's not specific to
Plotly.react, I can get this to happen withPlotly.deleteTracestoo:I'll make a new issue for it over there.
igorpejic commentedon Feb 26, 2018
I have temporarily solved the issue by manually checking if datarevision has changed in react-plotly.js in my own fork.
igorpejic@76756e4
After some investigation in plotly.js I assume the bug was introduced by: plotly/plotly.js#2341 and plotly/plotly.js#2227
Specifically commits like this which are connected with different restyle logic based on traces and not axis: plotly/plotly.js@aab4f11
nicolaskruchten commentedon Mar 7, 2018
This is fixed with the latest version of plotly.js https://github.com/plotly/plotly.js/releases/tag/v1.35.0