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?
Asked
Active
Viewed 545 times
1
-
1You'll need to post your code or else no one will be able to see what the problem might be. – Chris B. Aug 16 '20 at 17:47
-
Could you reproduce your case on some online editor which I could work on? – Sebastian Wędzel Aug 17 '20 at 07:50
-
Looks like my formatter function for x-axis was creating this issue. Used toString() method, instead of directly changing (this.value). – Dark Frost Aug 19 '20 at 08:19
2 Answers
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