QingWei-Li/vue-trend

Animation on data change?

mishushakov opened this issue · 4 comments

Hey guys, love the library, could you please add animation when data changes or new properties are added? Would be very nice, thank you!

@QingWei-Li Hey, you closed the issue, but the bug remains :( https://jsfiddle.net/nyh18bLq/417/ is it just cache or should it work like that?

Something new about this issue I wanna get an animation when data change, is it posible?

Here's a hack that worked for me:

I assign a key to the vue-trend instance and update it when the data changes in order to redraw the chart. This is a good write-up on forcing a component to render again in Vue.