Team:Virginia/Test
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <html>< | + | <html> |
+ | <head> | ||
+ | <script type="text/javascript" src="https://www.google.com/jsapi"></script> | ||
+ | <script type="text/javascript"> | ||
+ | google.load("visualization", "1", {packages:["geochart"]}); | ||
+ | google.setOnLoadCallback(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> | ||
+ | </head> | ||
+ | <body> | ||
+ | <div id="regions_div" style="width: 900px; height: 500px;"></div> | ||
+ | </body> | ||
+ | </html> |
Revision as of 02:07, 16 October 2014