-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Should Plotly.restyle throw error(s) when the update object isn't valid? #167
Comments
Thanks for opening the issue. I'll take a look into this and we'll hopefully have a fix in a future release. We're always open to community pull requests as well if they follow our contributing guidelines and style! For now, your best bet is to use |
@harshjv Your update object should be: var update = {
x: [['2001-06-15 11:10', '2001-06-15 11:20']],
y: [['23', '100.3']]
}; to update the The restyle syntax works as fellow, the outer array maps to different traces i.e. your above update object mapped So, to update the the More info about the restyle syntax here. Unfortunately our docs on That said, one could argue that trying to update |
@etpinard Thanks. 👍 |
@harshjv no problem. I'd rename your issue to reflect the discussion about possibly making |
No initial opposition to throwing an error from me. |
Hi! I've been |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Consider this setup,
This dosen't work, and clears the plot
But this is working
Plotly.restyle
is handling two axis data update incorrectly and clears the existing data on the plot.The text was updated successfully, but these errors were encountered: