Skip to content

Function: animate() ​

ts
function animate(el, target?, options?): Promise<Chart>;

Plotly animate: play frames by group, name or object. See Chart.animate.

Parameters ​

ParameterType
elHTMLElement
target?AnimateTarget
options?AnimationOptions

Returns ​

Promise<Chart>

Example ​

ts
await animate(el, null, { frame: { duration: 500, redraw: false }, fromcurrent: true });

Released under the MIT License.