MGSteve
Posts: 16
Joined: Sat Oct 04, 2008 4:43 pm

On Animation Complete For the entire chart

Hi, is there a way to get a call back when the animation of a chart loading is complete?

I've tried the various examples on the web and can't find one that works on the entire chart.

i.e. (Using the bar drill down example for testing)

Code: Select all

Highcharts.chart('container', {
    chart: {
        type: 'bar',
        animation: {
          complete: onAnimComplete,
        }
    }
...
http://jsfiddle.net/5rj9Lgzv/

This will call the callback multiple times (once per bar?)

I need to know when the chart has finished loading & animating as I need to export the page as a PDF via jsReport.
Regards

Steve.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: On Animation Complete For the entire chart

Hi MGSteve,

Thanks for contacting us with your question.

Usually all chart animations are finished once series animation is finished, so in your case you want check if series finished animating. Should the callaback take place only after series animation or after drilldown animation too?

Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”