-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Plotly.deleteFrames(gd, null) should delete *all* frames #1528
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
Hmm. What does |
The challenge (both for traces and frames, IMO) is that it's difficult to track what the indices actually are since there's no API for querying the state of the chart without digging into |
(Small addendum that unless no longer throwing an error is a breaking change, I don't see a particular problem with considering both of these an enhancement or both of these simply unsupported (in which case the frame error should be more descriptive)) |
Oops. Neglected to close. 👍 |
Currently, I think
Plotly.deleteFrames('graph', null);
will throw an error as it expects a list of frame indices to be deleted. This seems like an oversight. To matchanimate(gd, null)
, it should probably delete all frames. If there's agreement, I'll make this quick fix.will fail here: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_api.js#L2767
The text was updated successfully, but these errors were encountered: