community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1690574 - /comdev/projects.apache.org/site/js/projects.js
Date Mon, 13 Jul 2015 07:14:59 GMT
Author: hboutemy
Date: Mon Jul 13 07:14:58 2015
New Revision: 1690574

URL: http://svn.apache.org/r1690574
Log:
avoid multiple language charts in front page

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=1690574&r1=1690573&r2=1690574&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Mon Jul 13 07:14:58 2015
@@ -1194,10 +1194,8 @@ function renderPodlingsEvolution(obj) {
 }
 
 function renderLanguageChart() {
-    var obj = document.getElementById('contents');
-    var chartDiv = document.createElement('div');
-    
-    
+    var obj = document.getElementById('details');
+
     // Languages
     var lingos = [];
     var lcount = {};
@@ -1236,6 +1234,7 @@ function renderLanguageChart() {
       backgroundColor: 'transparent'
     };
 
+    var chartDiv = document.createElement('div');
     var chart = new google.visualization.PieChart(chartDiv);
     obj.appendChild(chartDiv);
     
@@ -1282,15 +1281,15 @@ function renderLanguageChart() {
         data2.addColumn({type: 'string', role: 'tooltip'});
         data2.addRows(carr);
 
-    var options = {
+    var options2 = {
       title: 'Categories (click on a category to view projects within it)',
       height: 400,
       backgroundColor: 'transparent'
     };
 
-    var chartDiv = document.createElement('div');
-    var chart2 = new google.visualization.PieChart(chartDiv);
-    obj.appendChild(chartDiv);
+    var chartDiv2 = document.createElement('div');
+    var chart2 = new google.visualization.PieChart(chartDiv2);
+    obj.appendChild(chartDiv2);
     
     
     function selectHandlerCategory() {



Mime
View raw message