I have a decoded Json variable called objIntChart that looks like the following when I console.log() it.
The problem is I need it as an array that looks like this
I did a foreach loop like this in an attempt to solve it:
var array = [];
objIntChart.forEach(function (entry) {
var x = 0++;
array.push(x);
array.x.push(entry['dateTime']);
array.x.push(entry['entries']);
});
However the problem is that I cannot do a push on array.x because it takes the x as the name and not the variable. Is there a solution to this?

