/ Published in: JavaScript
If you use this snippet in http://code.google.com/apis/ajax/playground/?type=visualization#geo_map it shows SK - ISO3166 code for Slovakia somewhere in Canada. Although personally I wouldn't mind, it seems to be incorrect.
Expand |
Embed | Plain Text
function drawVisualization() { var data = new google.visualization.DataTable(); data.addRows(6); data.addColumn('string', 'Country'); data.addColumn('number', 'Popularity'); data.setValue(0, 0, 'SK'); data.setValue(0, 1, 200); data.setValue(1, 0, 'US'); data.setValue(1, 1, 300); data.setValue(2, 0, 'IE'); data.setValue(2, 1, 400); data.setValue(3, 0, 'FR'); data.setValue(3, 1, 500); var options = { 'dataMode': 'markers' } var geomap = new google.visualization.GeoMap( document.getElementById('visualization')); geomap.draw(data, options); }
You need to login to post a comment.
