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
Also, make sure "highcharts-more.js" is declared in your HTML.
<script src="https://code.highcharts.com/highcharts-more.js"></script>
Perhaps a bit late to the party, but the default name for the container in Highcharts example was 'container'. The browser didn't seem to like that, name clash perhaps, changing to 'Chart' did the trick.
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({});}