Bhavi Chawla
Results
comments of
Bhavi Chawla
``` lineChart1: any; //declare plotGraph(data:any, label:any .....){ if(this.lineChart1){ console.log("destroying",this.lineChart1); this.lineChart1.destroy(); } this.lineChart1 = new Chart(this.lineCanvas.nativeElement, { // plotting graph }); } ``` Adding the if condition will remove all previous...