TreeDataVisualizer.animationStop

Syntax

animationStop();

Description

The animationStop method stops chart animation playing.

Example

To execute the example the HTML page must contain the TreeMap component named «treeMap» (see «Example of Creating the TreeMap component» ). Start animation, run animation step, pause animation and show animation state before and after it is stopped:

// Get Time Line
var timeline = treeMap.getTimeline();
// Start animation
timeline.play();
// Run animation step
treeMap.setAnimationStep(5);
// Show animation state
console.log("Animation attribute:" + treeMap.isAnimating());
//Stop animation running
treeMap.animationStop();
// Show animation state
console.log("Animation attribute: " + treeMap.isAnimating());

As a result, the browser console shows indications of animation playing before and after it is stopped:

Animation playing indication: true

Animation playing indication: false

See also:

TreeDataVisualizer