I am trying to add a custom tooltip to a Bubble chart, to replace the default tooltip. I have followed the instructions from the docs site (here) to add a new string
column to the DataTable, with role: 'tooltip'
. However, you can see in the following JS fiddle example, that the custom tooltip content does not render. The chart still shows the default tooltip.
Anyone know what I still need to do to get this custom tooltip content to show up?
As stated at the bottom of the help document:
Unfortunately, Bubble Charts are not covered and therefore you cannot add the custom html tooltips to them. You can write a custom javascript to create tooltips if you'd like, but you cannot use the existing functionality to do what you want to do.
I ended up making a custom tool-tip pop-up that is working pretty well.
Assuming your div for the bubble chart is defined like this:
Then I used the JavaScript below. Please note that I left out that stuff about how to set up your google chart data and loading the google charts package. This code just shows how to get your custom toolip popup.