Struggling to figure out how to change the chart type in an Angular component typescript file when clicking on a dropdown. Here's what I have so far:
Any ideas why it's not working?
onOptionsSelected(value:string){
console.log("the selected value is " + value);
if(value="line"){
this.showChart1();
}
else if(value=="bar"){
this.chartData.destroy();
this.showChart2();
}
else if(value=="area"){
this.showChart3();
}
else if(value=="column"){
this.showChart4();
}
}