I am creating a heatmap with Highcharts. I tested on a 5x5 map and I get the expected heatmap.
I then tested a larger one and the resulting heatmap is incorrect. I also tried it in CodePen, with same (incorrect) result.
Something strange is also happening somewhere in the large Array when using Codepen: (see this answer for that point, which explains why the highlighting stops)
I have a few possibilities:
- it could be a browser problem. I tested with Chrome and Firefox and get the same error
- it could be a JavaScript limitation on the size of the Array
(the highlighting of the code is chnaging in Codepen so maybe). It looks like it is not. - it could be a bug in JSFiddle and Codepen. I doubt it as the issue is the same in both sandboxes.
- it could be a bug with Highcharts. This I do not know - my code is not exotic (even though somehow large) so that should have been caught earlier. But this one looks like the most probable.
This is a fake snippet as the question requires one but it is not useful in this case

CodeMirror (which is the editor of codepen) support the
maxHighlightLength, which tells the editor the maximum length of characters the editor should highlight.The
defaultvalue of that variable is10000, and in your specific case the line is longer than this value.