Team:Virginia/Tabs
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | |||
<html> | <html> | ||
- | <head> | + | <head> |
- | + | <script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
- | + | <script type="text/javascript"> | |
- | + | ||
- | + | ||
- | <script type="text/javascript"> | + | |
google.load("visualization", "1", {packages:["geochart"]}); | google.load("visualization", "1", {packages:["geochart"]}); | ||
google.setOnLoadCallback(drawRegionsMap); | google.setOnLoadCallback(drawRegionsMap); | ||
Line 12: | Line 8: | ||
function drawRegionsMap() { | function drawRegionsMap() { | ||
+ | var data = google.visualization.arrayToDataTable([ | ||
+ | ['Country', 'Popularity'], | ||
+ | ['Germany', 200], | ||
+ | ['United States', 300], | ||
+ | ['Brazil', 400], | ||
+ | ['Canada', 500], | ||
+ | ['France', 600], | ||
+ | ['RU', 700] | ||
+ | ]); | ||
- | + | var options = {}; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | var chart = new google.visualization.GeoChart(document.getElementById('regions_div')); | ||
+ | chart.draw(data, options); | ||
} | } | ||
</script> | </script> | ||
- | + | </head> | |
- | + | <body> | |
- | + | <div id="regions_div" style="width: 900px; height: 500px;"></div> | |
- | + | </body> | |
- | + | ||
- | + | ||
- | </head> | + | |
- | <body> | + | |
- | <div id=" | + | |
- | + | ||
- | + | ||
- | + | ||
- | </body> | + | |
</html> | </html> |
Revision as of 00:34, 18 October 2014