I'm having issues loading an array from a file from $.get(). I get a good HTTP status code so the file is accessed, but it's not turning it into an array.
Here's the code I have
$(function() {
$.get('https://gist.github.com/storbeck/6956620/raw/e274c8af60ef25e7bc481fded0c9e4e8e8412e75/testdata', function(data) {
$('#container').highcharts('StockChart', {
rangeSelector : {
selected : 1
},
title : {
text : 'Test Data'
},
series : [{
name : 'Data',
data : data,
tooltip: {
valueDecimals: 2
}
}]
});
});
});
Here's a jsFiddle of the current code of it not working.
I was able to get it working by copy/pasting the array into the data variable and not using $.get so I don't think the array is the problem. Here's that version
One other thing I'm having issues with is the epoch time in Highcharts, when I test the time in an online convertor, it converts the time just fine.