AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.utils.Animation Improve this Doc

Extends: anychart.core.Base

Animation class. The animation class is used in maps.

Methods Overview

Specific settings
duration()Animation duration.
Interactivity
enabled()Animation state (enabled or disabled).

Methods Description

duration

Getter for the animation duration.

Returns:

number - The animation duration in ms.
Setter for animation duration in milliseconds. See sample at anychart.core.Chart#animation.

Params:

NameTypeDefaultDescription
durationnumber
1000
Animation duration to set.

Returns:

anychart.core.utils.Animation - Self instance for method chaining.

enabled

Getter for the animation state.

Returns:

boolean - The animation state.
Setter for the animation enabled state.
See sample at anychart.core.Chart#animation.

Params:

NameTypeDefaultDescription
enabledboolean
false
Enabled state to set.

Returns:

anychart.core.utils.Animation - Self instance for method chaining.