I am trying to make Google Charts Display custom tooltips with full HTML in them.
I know how to enable tooltips and pass appropriate data - the problem is - even when allowHTML
option is enabled, the tooltips are rendered as plain text, so for example I can't show a picture in the tooltip.
Here is a little example of what I am going for:
One way to solve this problem is to disable tooltips, capture onmouseover events and use another library (like cluetip) to display tooltips at cursor, but I was wondering if there is a cleaner, native way to enable this kind of functionality in Google Charts.
Also please check out my other question about images as point markers in google charts.
Edit:
In the meantime I found a very good and quite inexpensive (60$ per website license) library that covers this functionality : Highcharts library
As you can see in the example it is possible to pass a function that will format the tooltips - easily enough we could add a special property to each datapoint containig an url that could be used to dynammically load the tooltips content. The tooltips can then be cached by adding an extra property to each data point in a serie. I've implemented it this way and it works perfectly.
Hope the latest edit will help someone.