You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
The defaultProps for animation_options are { frame: { redraw: false, }, transition: { duration: 750, ease: 'cubic-in-out', }, }, but Plotly.animate takes an "easing" argument, not "ease".
I don't see any warning in the console for this, so I don't think these arguments are being validated; I can put whatever I like in animation_options and never get warnings/errors.
As an aside, it would be helpful if the dash_core_componentsdocs mentioned that frame.duration has to be set at least as long as transition.duration, or at least linked to https://plotly.com/javascript/animations/, as it's not immediately clear that you can't just arbitrarily set transition.duration to higher values. In fact the default frame.duration is 500, so the 750 default value here is misleading (maybe just setting frame.duration to 750 in the default here would at least highlight to users that it needs to be set).
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The defaultProps for
animation_options
are{ frame: { redraw: false, }, transition: { duration: 750, ease: 'cubic-in-out', }, }
, butPlotly.animate
takes an "easing" argument, not "ease".I don't see any warning in the console for this, so I don't think these arguments are being validated; I can put whatever I like in
animation_options
and never get warnings/errors.As an aside, it would be helpful if the
dash_core_components
docs mentioned thatframe.duration
has to be set at least as long astransition.duration
, or at least linked to https://plotly.com/javascript/animations/, as it's not immediately clear that you can't just arbitrarily settransition.duration
to higher values. In fact the defaultframe.duration
is 500, so the 750 default value here is misleading (maybe just settingframe.duration
to 750 in the default here would at least highlight to users that it needs to be set).The text was updated successfully, but these errors were encountered: