Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts event on animation complete?

Is there any way to set an event listener on when animation is finished on Highcharts redraw? From what I see, a redraw event fires immediately on change, without waiting for animation. Or maybe there's some other way to wait for when the chart has become still?

Besides, is it possible to add an event listener to the chart that's already rendered (e.g. via addEventListener, not by JSON configuration)?

like image 516
Actine Avatar asked Sep 05 '25 02:09

Actine


1 Answers

You can catch animation event and set complete function.

plotOptions: {
        series: {
            animation: {
                complete: function () {
                    console.log('a1');
                }
            }
        }
    },

http://jsfiddle.net/G63h4/

like image 94
Sebastian Bochan Avatar answered Sep 07 '25 10:09

Sebastian Bochan