I currently have a button that allows me to refresh the data on my page in case there is new data available through an API. Although this button successfully refreshes my datatable, it does not redraw the Google charts I have integrated into my project using the Ng2GoogleCharts module.
Does anyone know of a possible solution to either redraw the existing chart or delete it and create a new one?
This is how I am creating the chart on the HTML page:
<google-chart [data]="mixChartData" #chart></google-chart>
In my .ts file, I declare mixChartData like so:
this.mixChartData={
chartType: 'LineChart',
dataTable: this.mixChart,
options: this.mixOptions
}