so here's the deal:
I have this array:
var g = {"e":[[1458642397809,104],[1458642467849,104],[1458642537847,107],[1458642607815,107]]};
I want to use this data to make a graph with highcharts, so here's my code:
$(function() {
$('#container').highcharts({
chart: {
defaultSeriesType: 'spline',
zoomType:'x',
},
title: {
text: 'title'
},
yAxis: {
title: 'y',
min: '0'
},
xAxis: {
title: 'Date',
type: 'datetime',
tickPixelInterval: 150,
maxZoom: 20 * 1000
},
series: [{
name:"title",
data: [[1458642397809,104]
}]
});
});
the thing is, i need to transform my array
{"e":[[1458642397809,104],[1458642467849,104],[1458642537847,107],[1458642607815,107]]};
into this
[[1458642397809,104],[1458642467849,104],[1458642537847,107],[1458642607815,107]]
i tried multiple things but none of them seems to work, so I would love to have your help
var newArr = g.e?