Team:Imperial/Resources/JS:maps

From 2014.igem.org

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:CitableDocuments?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#CitableDocuments').highcharts('Map', {
               title: {
                   text: 'Biotechnology Citable Documents (1996-2013)'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 100,
                   max: 90000,
                   type: 'logarithmic',
                   stops: [
               [0, '#3060cf'],
               [0.5, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Biotechnology  Citable Documents',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });


});

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:Citations?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#Citations').highcharts('Map', {
               title: {
                   text: 'Biotechnology Citations (1996-2013)'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 3000,
                   max: 2000000,
                   type: 'logarithmic',
                   stops: [
               [0, '#3060cf'],
               [0.5, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Biotechnology Citations',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });


});

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:EPI?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#EPI').highcharts('Map', {
               title: {
                   text: 'English Proficiency Index'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 0,
                   max: 100,
                   type: 'linear',
                   stops: [
               [0, '#3060cf'],
               [0.5, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'English Proficiency Index',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });


}); $(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:Finalists?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#Finalists').highcharts('Map', {
               title: {
                   text: 'Frequency in Top 6'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 0,
                   max: 9,
                   type: 'linear',
                   maxColor: '#fdcc70'
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Frequency in Top 6',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });

});

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:journalRanking?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#journalRanking').highcharts('Map', {
               title: {
                   text: 'Frequency of Producing a Top 100 Journal (SJR 2013)'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 0,
                   max: 40,
                   type: 'linear',
                   stops: [
               [0, '#FFFFFF'],
               [0.05, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Frequency of Producing a Top 100 Journal (SJR 2013)',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });

});

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:QS_Biological?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#QS_Biological').highcharts('Map', {
               title: {
                   text: 'Frequency of Country in QS University Top 100 Rankings for Biological Sciences'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 0,
                   max: 35,
                   type: 'linear',
                   stops: [
               [0, '#FFFFFF'],
               [0.05, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Frequency of Country in QS University Top 100 Rankings for Biological Sciences',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });


});

$(function () {

   $.ajax({
       type: 'GET',
       url: 'http://jsonp.guffa.com/Proxy.ashx?url=https://2014.igem.org/Team:Imperial/Resources/json:QS_Overall?action=raw&ctype=text/json',
       dataType: 'jsonp',
       success: function (data) {
           // Initiate the chart
           $('#QS_Overall').highcharts('Map', {
               title: {
                   text: 'Frequency of Country in QS University Top 100 Rankings'
               },
               mapNavigation: {
                   enabled: true,
                   buttonOptions: {
                       verticalAlign: 'bottom'
                   }
               },
               colorAxis: {
                   min: 0,
                   max: 30,
                   type: 'linear',
                   stops: [
               [0, '#FFFFFF'],
               [0.05, '#fffbbc'],
               [0.9, '#fdcc70']
                   ]
               },
               series: [{
                   data: data,
                   mapData: Highcharts.maps['custom/world-robinson-highres'],
                   joinBy: ['iso-a2', 'code'],
                   name: 'Frequency of Country in QS University Top 100 Rankings',
                   states: {
                       hover: {
                           color: '#BADA55'
                       }
                   },
                   tooltip: {
                       valueSuffix: 
                   }
           }]
           });
       }
   });

});