1👍
✅
Instead of using chart.update() try creating the chart again.
For creating it again first you have to destroy the existing chart.
update ()=>{
chart.destroy();
//code for chart creation
}
Source:stackexchange.com