The GeoChart display the formatted value in the hovercard, which can be
different than the metro-code.
In your example, you can replace the addRow line with the following line:
data.addRow([{v: '501', f: 'New York'}, 83.9]);
Here is a live example:
http://savedbythegoog.appspot.com/?id=a1a12aa1096b91acd1420e5d07fff57d8b5304c4
Notice that in the example I also use setCell which is another alternative.
Viz Kid
On Tue, Mar 6, 2012 at 12:13 AM, emissary1521 <[email protected]> wrote:
> We have some US metro region charts implemented with the old geomap API.
> We'd like to migrate to geochart to remove the dependence on Flash. With
> geomap we're able to set the hovertext, like this:
>
> data.addRow(['501',83.9,'New York']);
>
> With geochart we can't figure out how to set the hovertext. It will only
> display the three-digit metro code which isn't very meaningful. Is there a
> way to set the hovertext when making US metro geocharts? If not, I'd like
> to request this as an enhancement. Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/xR_L027afd4J.
> 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.