Team:UT Dallas/Infographics

From 2012.igem.org

(Difference between revisions)
Line 11: Line 11:
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">  
<script type="text/javascript">  
 +
var prev_year_num=0;
google.load('visualization', '1', {packages: ['geochart']});
google.load('visualization', '1', {packages: ['geochart']});
     function draw_map(year_num)  
     function draw_map(year_num)  
Line 51: Line 52:
  else if(year_num==2004)
  else if(year_num==2004)
data=data_2004;
data=data_2004;
-
       geochart.draw(data,options);
+
       if(prev_year_num!=year_num)
 +
      {
 +
          geochart.draw(data,options);
 +
          prev_year_num=year_num;
 +
      }
     }
     }
-
    //google.setOnLoadCallback(draw_map(2012));
 
$(document).ready(function() {
$(document).ready(function() {
   draw_map(2012);
   draw_map(2012);

Revision as of 03:04, 25 September 2012

Infographics

This year, it has been X years since iGEM first started. We wanted to highlight some of the defining moments and show them to the rest of the iGEM world through these infographics! Enjoy!
Year 2012