Skip to content

Instantly share code, notes, and snippets.

@mishuagopian
Created November 16, 2016 20:51
Show Gist options
  • Save mishuagopian/58bd7561fca3ac4e634c0fd828cedc6d to your computer and use it in GitHub Desktop.
Save mishuagopian/58bd7561fca3ac4e634c0fd828cedc6d to your computer and use it in GitHub Desktop.
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