data.setFormattedValue(0, 1, "12,345,678");

HTH
LMKIYHAMQ

Vizzy

On Mon, Aug 30, 2010 at 1:06 AM, eli <[email protected]> wrote:

> 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]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
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.

Reply via email to