Skip to content

grafit-charts


Interface: AnimationOptions

Extends

Properties

duration?

optional duration?: number

Entrance animation duration, ms (600 by default).


enabled?

optional enabled?: boolean

Inherited from

Switchable.enabled


key?

optional key?: string | ((datum, index) => unknown)

What makes a row the same row across an update: the name of a field, or a function over the row. Without it rows are matched by position, so a change in their number is drawn at once instead of flowing — with it, the rows that stayed flow to their new values while the ones that came and went grow and sink at the ends.


updateDuration?

optional updateDuration?: number

Update transition duration, ms; falls back to duration, and to 450 without it.


updateEnabled?

optional updateEnabled?: boolean

The update transition on its own, and it wins wherever it was set: a chart asked to appear at once (enabled: false) and to move afterwards says so with updateEnabled: true. Without it the update follows enabled.