1

I am getting this error on loading the chart : TypeError: Cannot read property 'forExport' of undefined a.Chart.destroy I'm dynamically rendering the data by parsing a JSON object. Is this a bug? Im stuck. Can someone help me fix this error?

Dark Frost
  • 43
  • 2

2 Answers2

0

This is seen when you call on Highchart object when it is already been destroyed or Highchart object is not present. Please refer this https://github.com/highcharts/highcharts/issues/9232

function destroyChart() {
  if(this.highchart && this.highchart.destroy){
   this.highchart.destroy()
  }
}
AbhishekGowda28
  • 994
  • 8
  • 19
0

This entry is historic but I have just found the same issue with highcharts. A temporary fix is to set StrictMode off. On my app it then works as it should. I think this must be a bug and I have posted another stackoverflow question.

NAJ
  • 1,021
  • 1
  • 8
  • 11