score:0

Your function is called before your DOM is loaded, so you need to call this in $(function() {}); or in chart callback.

heat = new Highcharts.Chart({
   //chart options  
},function(chart){
     check() 
});

Example: http://jsfiddle.net/t8suqfku/5/

score:0

Heat Map instance should be declared globally so that its accessible to javascrip function and values for Hea tMap can be changed.


Related Query

More Query from same tag