动画图表js(行),逐行动画绘制图表 [英] Animation chart js (line), animate chart drawing line by line

查看:111
本文介绍了动画图表js(行),逐行动画绘制图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以扩展当前的chart.js,以使动画图形不会对整个图表进行动画处理,而是通过动画(轻松)逐行绘制图表?

Is there a way to extend the current chart.js so that the animation drawing doesn't animate the whole chart, but drawing the chart line by line with animation (ease) ?

推荐答案

Nevermind。我通过扩展chart.js并覆盖draw()函数来实现这一点,以便对行进行动画处理从一个点/点到另一个点/点,直到最后一个点/点。

Nevermind.I've implement it by extending chart.js and override draw() function so that I can animate the line from one dot/point to another until the last dot / point.

这篇关于动画图表js(行),逐行动画绘制图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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