Created
November 16, 2016 20:51
-
-
Save mishuagopian/58bd7561fca3ac4e634c0fd828cedc6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function heatmapInputGenerator (points, radius, max) { | |
return ` | |
var heatmapInstance = h337.create({ | |
container: document.querySelector('.heatmap'), | |
radius: ${radius} | |
}); | |
heatmapInstance.setData({ | |
max: ${max}, | |
data: ${JSON.stringify(points)} | |
}); | |
`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment