Me I use this method to control the 2 lines of the tooltip and still pass
the values:
var data = new google.visualization.DataTable();
data.addColumn('string', 'Country'); // Implicit domain
label col.
data.addColumn('number', 'Value'); // Implicit series 1
data col.
data.addColumn({type:'string', role:'tooltip'}); //
data.addRows([
[{v:"US",f:"United States of America"},1,"21% of
Visits"],
[{v:"GB",f:"United Kingdom"},2,"7% of visits"],
[{v:"DE",f:"Germany"},3,"6% of visits"],
]);
Check out the result here:
http://cmoreira.net/interactive-world-maps-demo/world-map-top-countries-by-visits/
Segunda-feira, 5 de Março de 2012 23:13:47 UTC+1, emissary1521 escreveu:
>
> 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/-/arH-vLkaFpQJ.
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.