score:-1

you have to call save64img(mychart.tobase64image()) over an additional callback. you can add this callback to the options

lineoptions = {
    onanimationcomplete: function () {
       save64img(mychart.tobase64image());
    }
}

score:1

i know that it's been awhile since you have asked the question, but in the chart.js v2 you have to use oncomplete method within the animation option.

animation: {
    duration: 1500,
    oncomplete: function (animation) { 
        this.tobase64image();
}

Related Query

More Query from same tag