Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://code.google.com/apis/ajax/playground/?type=visualization#geo_map
- function drawVisualization() {
- var data = google.visualization.arrayToDataTable([['Country', 'Number'],
- ['Canada', 21],
- ['Brazil', 3],
- ['Italy', 3],
- ['Czech Republic', 1],
- ['unknown(Bree)', 1],
- ['France', 6],
- ['Slovakia', 1],
- ['Ireland', 1],
- ['Argentina', 3],
- ['Norway', 1],
- ['Israel', 1],
- ['Australia', 15],
- ['Indonesia', 1],
- ['Venezuela', 1],
- ['Zambia', 1],
- ['unknown(nowhere and everywhere)', 1],
- ['unknown(place)', 1],
- ['Slovenia', 1],
- ['Germany', 15],
- ['Belgium', 5],
- ['Poland', 8],
- ['Spain', 4],
- ['Ukraine', 1],
- ['Netherlands', 2],
- ['Denmark', 3],
- ['Philippines', 1],
- ['Finland', 10],
- ['United States', 122],
- ['Sweden', 9],
- ['Belarus', 1],
- ['Croatia', 1],
- ['Japan', 2],
- ['Switzerland', 1],
- ['New Zealand', 2],
- ['Russia', 7],
- ['Romania', 1],
- ['Honduras', 1],
- ['Portugal', 1],
- ['Estonia', 4],
- ['South Africa', 1],
- ['Equatorial Guinea', 1],
- ['India', 1],
- ['United Kingdom', 13],
- ['Austria', 1],
- ['Greece', 1],
- ['Hungary', 1],
- ['South Korea', 2],
- ['Cyprus', 1]]);
- var options = {};
- options["height"] = '700px';
- options["width"] = '1500px';
- var geomap = new google.visualization.GeoMap(
- document.getElementById('visualization'));
- geomap.draw(data, options);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement