Team:Virginia/Test
From 2014.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
function drawRegionsMap() { | function drawRegionsMap() { | ||
- | + | var data = google.visualization.arrayToDataTable([ | |
- | + | ['Region Code', 'Continent', 'Popularity'], | |
- | + | ['142', 'Asia', 200], | |
- | + | ['150', 'Europe', 300], | |
- | + | ['019', 'Americas', 400], | |
- | + | ['009', 'Oceania', 600], | |
- | + | ['002', 'Africa', 700] | |
- | + | ]); | |
- | + | ||
- | + | var options = { | |
+ | resolution: 'continents' | ||
+ | }; | ||
- | + | var chart = new google.visualization.GeoChart(document.getElementById('regions_div')); | |
- | + | chart.draw(data, options); | |
} | } | ||
</script> | </script> |
Revision as of 02:32, 16 October 2014