Hello, everyone. I have a problem retrieving an object, it follows my situation:
How do I do:
$scope.data = [];
for(var i = 0; i < 5; i++) {
$scope.data.push(i);
}
// Result: [0,1,2,3,4]
Result I need
[[0,1,2,3,4]]
What I need and to assemble a chart with the Charts.js library but the data comes from a query and I am not able to mount this object in this format. (Note: in the project I use angular.js)
Thank you for your attention.