This all works great for loading the initial data, The chart displays fine, however after the timer hits 5 seconds later. i get an error and the chart doesn't update.
If I add a redraw to the component then it renders fine after 5 seconds.. problem is this is ugly from a UI perspective and i know chart.js supports using.addData()and.update()` my problem is understanding how your library expects this to be handled..
i guess im confused on how to implement this with a dynamic loading of data..
This is basically my code to test this out..
This all works great for loading the initial data, The chart displays fine, however after the timer hits 5 seconds later. i get an error and the chart doesn't update.
If I add a
redraw
to thecomponent then it renders fine after 5 seconds.. problem is this is ugly from a UI perspective and i know chart.js supports using
.addData()and
.update()` my problem is understanding how your library expects this to be handled..