You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hb...@apache.org on 2015/07/21 22:37:10 UTC

svn commit: r1692194 - /comdev/projects.apache.org/site/js/projects.js

Author: hboutemy
Date: Tue Jul 21 20:37:09 2015
New Revision: 1692194

URL: http://svn.apache.org/r1692194
Log:
represent retired or graduated items as negative value

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1692194&r1=1692193&r2=1692194&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Tue Jul 21 20:37:09 2015
@@ -1074,7 +1074,7 @@ function renderCommitteeEvolution() {
             retDisplay.push(c.name + ' (established ' + c['established'] + ')');
         }
         cur += established.length - retired.length;
-        data.push([d, established.length, htmlListTooltip(d, 'new committee', estDisplay), retired.length, htmlListTooltip(d, 'retired committee', retDisplay), cur]);
+        data.push([d, established.length, htmlListTooltip(d, 'new committee', estDisplay), -1*retired.length, htmlListTooltip(d, 'retired committee', retDisplay), cur]);
     }
     //narr.sort(function(a,b) { return (b[1] - a[1]) });
     var dataTable = new google.visualization.DataTable();
@@ -1097,7 +1097,7 @@ function renderCommitteeEvolution() {
         series: {2: {type: "line", targetAxisIndex: 1}},
         tooltip: {isHtml: true},
         vAxes:[
-            {title: 'Change in states'},
+            {title: 'Change in states', ticks: [-3,0,3,6,9]},
             {title: 'Current number of committees'}
         ]
     };
@@ -1157,8 +1157,8 @@ function renderPodlingsEvolution(obj) {
         }
         cur += started.length - graduated.length - retired.length;
         data.push([d, started.length, htmlListTooltip(d, 'new podling', startedDisplay),
-            graduated.length, htmlListTooltip(d, 'graduated podling', graduatedDisplay),
-            retired.length, htmlListTooltip(d, 'retired podling', retiredDisplay), cur]);
+            -1*graduated.length, htmlListTooltip(d, 'graduated podling', graduatedDisplay),
+            -1*retired.length, htmlListTooltip(d, 'retired podling', retiredDisplay), cur]);
     }
     //narr.sort(function(a,b) { return (b[1] - a[1]) });
     var dataTable = new google.visualization.DataTable();
@@ -1184,7 +1184,7 @@ function renderPodlingsEvolution(obj) {
         series: {3: {type: "line", targetAxisIndex: 1}},
         tooltip: {isHtml: true},
         vAxes: [
-            {title: 'Change in states'},
+            {title: 'Change in states', ticks: [-6,-3,0,3,6]},
             {title: 'Current number of podlings'}
         ]
     };