change this line
var heatmap = h337.create(
to
var heatmap = window.h337.create(
Update:
Well, you're in luck, I found an error, you need to pass the "container" property in the heatmap option:
heatmap = window.h337.create( { "container": document.getElementById("heatmapArea"), "element": document.getElementById("heatmapArea"), "radius" : 11, "opacity": 40, "visible": true, "gradient" : { 0.45: "rgb(0,0,255)", 0.55: "rgb(0,255,255)", 0.65: "rgb(0,255,0)", 0.95: "yellow", 1: "rgb(255,0,0)"} })
it works for me :)
john smith
source share