Skip to content

Interface: FrameInput<D> ​

An animation frame (figure.frames[i], addFrames): trace and layout changes applied as one step, like Plotly's frames.

Type Parameters ​

Type ParameterDefault typeDescription
D extends objectTraceInputThe trace type (see FigureInput).

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyModifierTypeDescription
baseframe?readonlystring | numberName of a frame this one extends: its data and layout apply first.
data?readonlyreadonly (Partial<D> | null | undefined)[]Trace changes, merged into the traces listed in traces (default: trace i for data[i]). A frame's trace may leave out type.
group?readonlystring | numberGroup name: animate('group') plays the frames of a group in order.
layout?readonlyReadonly<Record<string, unknown>>Layout changes (attribute strings such as 'xaxis.range' work too).
name?readonlystring | numberName to animate to (numbers are converted to strings). Unnamed frames get 'frame N'.
traces?readonlynumber | readonly number[]Trace indices data applies to.

Released under the MIT License.