Geochart HTML tooltip

79 views
Skip to first unread message

dunba...@gmail.com

unread,
Feb 29, 2016, 8:06:35 PM2/29/16
to Google Visualization API
Hi, 
Is there any way to include a google.visualization.events.addListener into the HTML tooltip in a geochart so that I can launch a new (non-geo)chart when I click on a particular country? 
All suggestions welcome. 
Regards
Nick 

Sergey Grabkovsky

unread,
Mar 1, 2016, 9:47:00 AM3/1/16
to Google Visualization API
Hey Nick,

There's no way to use google.visualization.events.addListener to listen to event in the HTML tooltip, but you can certainly embed actual links in your HTML tooltip. However, you'll also have to set the tooltip.trigger option to 'selection'. Here's an example: http://jsfiddle.net/wm9kt29z/

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4549a59b-abd5-42d1-9cc2-d1c0b57bff16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


Reply all
Reply to author
Forward
0 new messages