如何用动画重新渲染canvas.js图表​​? [英] How to re-render canvasjs chart with animation?

查看:91
本文介绍了如何用动画重新渲染canvas.js图表​​?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我已经按照链接.

So far I've been successfully updating the data for the my chart following the guide in this link.

但是,如何重新渲染但首次渲染时却具有相同的动画?

However, how can do re-render it but with the same animation when it was first rendered?

推荐答案

不知何故,我知道不应该这样,但我发现的唯一解决方案是重新初始化图表的创建以实现该动画

It's somehow a hack and I know it shouldn't be this way but the only solution I found was to reinitialize the creation of the chart just to achieve that animation.

这篇关于如何用动画重新渲染canvas.js图表​​?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆