Hi I'm using GeoMap and I would like to show the number in a different format then the default. Instead of displaying 12345678 I would like to display 12,345,678 when hover. Thanks, Elic
<script type='text/javascript' src='http://www.google.com/jsapi'></ script></script><script type='text/javascript'> google.load('visualization', '1', {'packages': ['geomap']}); google.setOnLoadCallback(drawMap); function drawMap() { var data = new google.visualization.DataTable(); data.addRows(2); data.addColumn('string', 'Country'); data.addColumn('number', 'Revenue'); data.setValue(0, 0, 'US'); data.setValue(0, 1, 12345678); data.setValue(1, 0, 'CA'); data.setValue(1, 1, 3564); var options = {}; options['dataMode'] = 'regions'; options['width'] = '500px'; options['height'] = '230px'; var container = document.getElementById('map_canvas'); var geomap = new google.visualization.GeoMap(container); geomap.draw(data, options); }; </script> <div id='map_canvas'></div> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
