-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axes not redrawing after layout change #45
Comments
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. |
@alexcjohnson is this one of those cases where |
Looks like a plotly.js bug, it's not specific to Plotly.newPlot(gd,
[{y: [1,2,3]}, {y: [10, 30, 20], yaxis: 'y2'}],
{yaxis2: {side: 'right', overlaying: 'y'}}
);
Plotly.deleteTraces(gd, [1]); I'll make a new issue for it over there. |
I have temporarily solved the issue by manually checking if datarevision has changed in react-plotly.js in my own fork. 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 |
This is fixed with the latest version of plotly.js https://github.com/plotly/plotly.js/releases/tag/v1.35.0 |
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)
The text was updated successfully, but these errors were encountered: