-
Notifications
You must be signed in to change notification settings - Fork 29
Can't change plot div className #10
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
Comments
Hi, |
Interestingly, the bug only occurs when the two components have differing classNames. |
I raised an issue upstream for this. Thanks for the report. |
As per the discussion at plotly/plotly.js#916 changing class on the plot div is not a supported action. I will add an error message for this scenario and close this ticket when that is done. |
We stopped using redraw for now, so closing this. |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to style my graph with a loading animation when there is no data in my component's props yet.
Here is a gist with what my code looks like: https://gist.github.com/zachschultz/b3e7261cd774d0c54b21c2100381c6fb
UPDATE: Adding a console.log statement into the div makes this magically work...still have no idea why.
Essentially, if the graph data doesn't exist, I want to show a Plotly graph that will be grayed out with a spinning loading logo on it. However, this isn't working, and when my graph data comes in the graph itself doesn't re-render with data, it just stays blank.
I know for a fact the data is there and that the graph data state is being updated as well, so I'm really not sure what is going wrong here.
The text was updated successfully, but these errors were encountered: