Skip to content

Instantly share code, notes, and snippets.

@shacheeswadia
Created November 21, 2021 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shacheeswadia/3a0d774720806e711b2530104a9a68db to your computer and use it in GitHub Desktop.
Save shacheeswadia/3a0d774720806e711b2530104a9a68db to your computer and use it in GitHub Desktop.
anychart.onDocumentReady(function () {
anychart.data.loadJsonFile( 'https://gist.githubusercontent.com/shacheeswadia/b0d6b34a1910359e0e1a8fc0c84019a6/raw/4ab92ca6361f1bc9875d2854e2e1271bc991f86b/surfaceAreaData.json',
function (data) {
// processing of the data
var result = [];
for (var x = 0; x < data.x.length; x++) {
for (var y = 0; y < data.y.length; y++) {
result.push([x, data.y.sort()[y], data.z[x][y]]);
}
}
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment