lgkonline/Countess

Avoid Canvas rebuild after refresh of data

Closed this issue · 1 comments

Right now after the timeout data will get received new and the Chart.js graphs will get initalized new.
To reduce process capacity it should only update the data.

There seem to be no way to refresh the Chart.js data dynamically. The recommended way is to delete older instances with chartObj.destroy() and create a new instance.