I use highchart so, the user can close and open the chart page and redraw the chart, in some case give me this error, how can I fix it, Thanks Here is my code
This is an old question, but none of the answers are really satisfactory in my opinion.
I would suggest checking to make sure the chart div exists before rendering the chart.
if($('#'+id).length){ $('#'+id).highcharts({});}