ChartHistory.animate

Syntax

animate(step: Number);

Parameters

step. Animation share to play. Parameter value ranges between 0 and 1.

Description

The animate method calculates position of bubble history at the specified animation step.

Comments

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Change time line step and redraw history for one of the bubbles:

// Change time line step
bubbleChart.setTimelineStep(1);
// Show bubble history
bubbleChart.getSeries()[26].getPoints()[0].setIsHistoryOn(true);
// Clear labels history layer
bubbleChart.getChartArea().getHistoryLayer().clear();
// Change position of bubble history
var his = bubbleChart.getSeries()[26].getPoints()[0].getHistory();
his.animate(1);
// Draw bubble history
his.renderFrame(bubbleChart.getChartArea().getHistoryLayer());

As the result, values history is drawn for one of the bubbles:

See also:

ChartHistory