started stats on fields.
This commit is contained in:
1 parent
2add8284e6
commit
37209f6779
11 files changed
+122
-11
No files matched your search
@@ -0,0 +1,22 @@
|
||||
root = this;
|
||||
|
||||
humanValueOfStatisticalAbreviation =
|
||||
mean: "mean"
|
||||
std: "standard deviation"
|
||||
var: "variance"
|
||||
|
||||
|
||||
root.controllers.controller('keyStatCtrl', ['$scope', '$routeParams', '$http', ($scope, $routeParams, $http) ->
|
||||
$scope.name = "didier!"
|
||||
$scope.stats = []
|
||||
|
||||
url = "/api/#{ $routeParams.server }/#{ $routeParams.database }/#{ $routeParams.collection }"
|
||||
url = "#{ url }/stats/#{$routeParams.key}"
|
||||
|
||||
$http.get(url).then((res) ->
|
||||
for key, val of res.data
|
||||
$scope.stats.push({name: humanValueOfStatisticalAbreviation[key], value: val })
|
||||
)
|
||||
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user