Hi, this feature is not available in the GeoMap. However, it is available in
our
GeoChart<http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html>,
by setting the formatted value of the cell which contains the region id.
For example:
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Country');
data.addColumn('number', 'Popularity');
data.addRow([{v: '501', f: 'New York'}, 100]);
var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
geochart.draw(data, {width: 556, height: 347, region: 'US', resolution:
'metros'});
}
You can also change the formatted value for a cell in an existing table by
using the DataTable.setFormattedValue method.
HTH.
On Tue, Aug 9, 2011 at 9:04 AM, hjt <[email protected]> wrote:
> Hi,
>
> I am using geomap to display us metros. Wondering if it is possible
> to display the metro's name as the heading of the hover on, instead of
> the metro code?
>
> For example:
> New York, NY
> m-om: 1,000
>
> or
> 501
> New York, NY: 1,000
>
> Thanks.
>
> JT
>
> --
> 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.
>
>
--
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.