I have JSON that looks like the below:
values: [[1,0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,0],[8,0]]
I query for this in my MEANJS app from the controller
$scope.find = function() {
$scope.transByusers = TransByusers.query();
Yet, when I attempt to add it into the $scope.data, it does not work.
$scope.data = [
{
values: [[1,0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,0],[8,0],[9,0],[10,0],[11,0],[12,0],[13,0],[14,0],[15,0],[16,0],[17,0],[18,0],[19,0],[20,0],[21,0],[22,0],[23,0],[24,0]] ,
mean: 3
},
{
values: $scope.transByusers[0].values
}
];
};
Any insight would greatly appreciated, thanks.