Function: animate()
ts
function animate(el, target?, options?): Promise<Chart>;Plotly animate: play frames by group, name or object. See Chart.animate.
Parameters
| Parameter | Type |
|---|---|
el | HTMLElement |
target? | AnimateTarget |
options? | AnimationOptions |
Returns
Promise<Chart>
Example
ts
await animate(el, null, { frame: { duration: 500, redraw: false }, fromcurrent: true });