[Solved] Switch between chart and datatable in highcharts


The way you’re fetching the chart is wrong.

You should replace this:

var chart = $('#'+id).Highchart()

With this:

var chart = $("#" + id).highcharts();

2

solved Switch between chart and datatable in highcharts