animation

[ root » graph » plot » animation ]

Controls chart animation on initialization and refresh. When using effects, methods, and sequences, you can use the numeric code or string name. When using the string name, remember that you must prefix the string with "ANIMATION_" (e.g. "ANIMATION_BACK_EASE_OUT"). Refer to the Animation Tutorial for more information.

AttributeTypeInfo

delay

Numeric

Sets the delay in milliseconds between each step of the animation.

5 | 10 | ...

on-change

Boolean

Determines whether or not animation occurs when a change is made to the chart via an API event (e.g., adding node, adding plot, removing node).

true (default) | false | 1 | 0

on-legend-toggle

effect (numeric)

Numeric CodeString Name

1

ANIMATION_FADE_IN

2

ANIMATION_EXPAND_VERTICAL

3

ANIMATION_EXPAND_TOP

4

ANIMATION_EXPAND_BOTTOM

5

ANIMATION_EXPAND_LEFT

6

ANIMATION_EXPAND_RIGHT

7

ANIMATION_EXPAND_HORIZONTAL

8

ANIMATION_SLIDE_LEFT

9

ANIMATION_SLIDE_RIGHT

10

ANIMATION_SLIDE_TOP

11

ANIMATION_SLIDE_BOTTOM

12

ANIMATION_UNFOLD_HORIZONTAL

13

ANIMATION_UNFOLD_VERTICAL

ANIMATION_FADE_IN | ANIMATION_EXPAND_VERTICAL | 1 | 2 | ...

method (numeric)

Sets the method used for each animation effect.

Numeric CodeString Name

0

ANIMATION_LINEAR

1

ANIMATION_BACK_EASE_OUT

2

ANIMATION_ELASTIC_EASE_OUT

3

ANIMATION_BOUNCE_EASE_OUT

4

ANIMATION_STRONG_EASE_OUT

5

ANIMATION_REGULAR_EASE_OUT

ANIMATION_LINEAR | ANIMATION_BACK_EASE_OUT | 0 | 1 | ...

sequence (numeric)

Determines animation groups.

Numeric CodeString Name

0

ANIMATION_NO_SEQUENCE

1

ANIMATION_BY_PLOT

2

ANIMATION_BY_NODE

3

ANIMATION_BY_PLOT_AND_NODE

ANIMATION_NO_SEQUENCE | ANIMATION_BY_PLOT | 0 | 1 | ...

speed (numeric)

Sets the length of the animation in milliseconds.

String NameEquivalent Speed (in Milliseconds)

ANIMATION_SLOW

4000

ANIMATION_FAST

1000

ANIMATION_SLOW | ANIMATION_FAST | 1000 | 4000 | ...