HTML tooltip in Sankey charts

256 views
Skip to first unread message

dunba...@gmail.com

unread,
Jan 6, 2016, 11:45:08 AM1/6/16
to Google Visualization API
I have got Sankey charts working with custom HTML tooltips but can't get the formatting of the tooltip box to look right - it's too elongated and the HTML tags in the tooltip text are ignored. Can anyone help with this? JSFiddle is here: http://jsfiddle.net/t9e3dcy3/5/

Thanks, 
Nick 

Sergey Grabkovsky

unread,
Jan 6, 2016, 11:56:27 AM1/6/16
to Google Visualization API
Hi Nick,

In order to get the HTML code in your custom tooltips to show up as actual HTML, you have to set the 'html' property to true for that column, row, or cell. Here is your example with me setting the column property 'html' to true: http://jsfiddle.net/d5qoLu2x/

--
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/5f0d70d5-5c3c-413c-ae21-c39defb1afeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com

Nick Dunbar

unread,
Jan 6, 2016, 12:05:30 PM1/6/16
to google-visua...@googlegroups.com
Thanks Sergey!

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/z2etu_UCzWY/unsubscribe.
To unsubscribe from this group and all its topics, 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.
Reply all
Reply to author
Forward
0 new messages