Commit 3a023a0e authored by delanoe's avatar delanoe

[UNFEAT] Comment new feature for the future.

parent 60d4cbf7
......@@ -471,6 +471,7 @@ gargantext.controller("GraphController", function($scope, $http, $element) {
// calculate average for earch dataset
/*
var sums = [];
for (var i=0; i<$scope.datasets.length;i++){
sums.push(0);
......@@ -488,6 +489,7 @@ gargantext.controller("GraphController", function($scope, $http, $element) {
for (var i=0; i<$scope.datasets.length;i++){
sums[i] /= count;
}
*/
// Convert this object back to a sorted array
var yMin, yMax;
......@@ -497,7 +499,8 @@ gargantext.controller("GraphController", function($scope, $http, $element) {
var yList = dataObject[x];
for (var i=0; i<yList.length; i++) {
y = yList[i];
row['y' + i] = y - sums[i]; // position vs average
row['y' + i] = y ; // position vs average
//row['y' + i] = y - sums[i]; // position vs average
if (yMax == undefined || y > yMax) {
yMax = y;
}
......@@ -518,7 +521,8 @@ gargantext.controller("GraphController", function($scope, $http, $element) {
id: 'series_'+ i,
y: 'y'+ i,
axis: 'y',
color: $scope.getColor(i, n)
color: $scope.getColor(i, n),
label: 'Project, corpus, docs|ngrams, terms'
};
angular.forEach($scope.seriesOptions, function(value, key) {
seriesElement[key] = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment