简体   繁体   中英

Chart JS no animation line chart

I'm struggling against ChartJS. I have to update my datas sometime so I use the method update() like said in the doc.

But when I update my chart, I don't have the animation. I'm using Firefox 60.1 on Linux , maybe this can cause the problem but I don't think cause when I go on the official chartjs site I can see everything and working well.

This Fiddle-pie works well I have an animation and this Fiddle-Line doesn't work : No animation.

Is there a difference in use of those 2 graphs ?

Thanks for your help.

我刚刚在这里更新了您问题的js小提琴链接。js小提琴只是添加了backgroundColor: ["rgb(40, 37, 89)", "rgb(54, 162, 235)", "rgb(75, 192, 192)", "rgb(8, 197, 94)", "rgb(255, 99, 132)"],在您的代码中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM