如果toBase64Image()函数显示空白图像,则需要使用以下内容对其进行正确处理:
animation: {
duration: 2000,
onComplete: function (animation) {
this.toBase64Image();
}
}这样,您还可以使用其他修复程序。通过其他回调调用save64Img(myChart.toBase64Image())并进行如下设置:
myLine = {
onAnimationComplete: function () {
save64Img(myChart.toBase64Image());
}
}