Created
April 28, 2011 21:08
-
-
Save cromulus/947343 to your computer and use it in GitHub Desktop.
heatmap.js issues on chrome, getting
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
data={"vals":[{"x":"473","y":"13"},{"x":"473","y":"13"},{"x":"92","y":"154"},{"x":"92","y":"154"},{"x":"91","y":"135"},{"x":"91","y":"135"},{"x":"86","y":"96"},{"x":"86","y":"96"},{"x":"123","y":"75"},{"x":"123","y":"75"},{"x":"105","y":"81"},{"x":"105","y":"81"},{"x":"101","y":"82"},{"x":"101","y":"82"},{"x":"82","y":"98"},{"x":"82","y":"98"},{"x":"80","y":"107"},{"x":"80","y":"107"},{"x":"80","y":"123"},{"x":"80","y":"123"},{"x":"82","y":"169"},{"x":"82","y":"169"},{"x":"84","y":"220"},{"x":"84","y":"220"},{"x":"85","y":"226"},{"x":"85","y":"226"},{"x":"85","y":"224"},{"x":"85","y":"224"},{"x":"87","y":"167"},{"x":"87","y":"167"},{"x":"91","y":"140"},{"x":"91","y":"140"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"1177","y":"45"},{"x":"1177","y":"45"},{"x":"1177","y":"93"},{"x":"1177","y":"93"},{"x":"1184","y":"101"},{"x":"1184","y":"101"},{"x":"1222","y":"141"},{"x":"1222","y":"141"},{"x":"1237","y":"198"},{"x":"1237","y":"198"},{"x":"1173","y":"333"},{"x":"1173","y":"333"},{"x":"99","y":"277"},{"x":"99","y":"277"},{"x":"100","y":"273"},{"x":"100","y":"273"},{"x":"101","y":"260"},{"x":"101","y":"260"},{"x":"166","y":"204"},{"x":"166","y":"204"},{"x":"229","y":"278"},{"x":"229","y":"278"},{"x":"450","y":"146"},{"x":"450","y":"146"},{"x":"313","y":"36"},{"x":"399","y":"12"},{"x":"506","y":"17"},{"x":"327","y":"19"},{"x":"159","y":"136"},{"x":"210","y":"266"},{"x":"323","y":"272"},{"x":"477","y":"271"},{"x":"553","y":"270"},{"x":"499","y":"12"},{"x":"596","y":"6"},{"x":"473","y":"13"},{"x":"473","y":"13"},{"x":"473","y":"13"},{"x":"473","y":"8"},{"x":"464","y":"16"},{"x":"464","y":"16"},{"x":"464","y":"16"},{"x":"464","y":"16"},{"x":"464","y":"16"},{"x":"464","y":"16"},{"x":"471","y":"19"}],"length":82,"success":true}; | |
var xx = h337.create({"element":document.getElementById("heatmaparea"), "radius":25, "visible":true}); | |
for (var i = data.vals.length - 1; i >= 0; i--){ | |
xx.store.addDataPoint(data.vals[i].x,data.vals[i].y); | |
}; | |
// i get this error: | |
// Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9 | |
// in heatmap.drawAlpha line 287 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment