HTML tooltips just stopped working (now displays actual code). No code was changed.

17 views
Skip to first unread message

Michael H

unread,
Jan 17, 2017, 10:06:59 AM1/17/17
to Google Visualization API
We have multiple charts and graphs that utilized HTML tooltips that are revealed on click. Quite suddenly, they all stopped working correctly and now display the HTML code instead of the display desired.:

Is anyone else experiencing this? Any help would be appreciated.

EXAMPLES

- Michael

Daniel LaLiberte

unread,
Jan 17, 2017, 11:00:16 AM1/17/17
to Google Visualization API
I see in your code that you have two separate tooltip options:

 var options = {
    tooltip: {isHtml: true},
    ...
    tooltip: { trigger: 'selection' }
  }

The problem with this is that the one of them will win and overwrite the other.   The Google Charts code won't know what happened.  Combine them into one object and it should work:

 var options = {
    tooltip: { isHtml: true,  trigger: 'selection' },
   ...
  }
  
I don't know why this would have suddenly changed, but a browser update could have something to do with it.  


--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/cd22806c-9796-4c3d-9a1e-7b7b968c5b0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Michael H

unread,
Jan 17, 2017, 4:47:33 PM1/17/17
to Google Visualization API
Perfect! Thank you so very much.

- Michael


On Tuesday, January 17, 2017 at 10:00:16 AM UTC-6, Daniel LaLiberte wrote:
I see in your code that you have two separate tooltip options:

 var options = {
    tooltip: {isHtml: true},
    ...
    tooltip: { trigger: 'selection' }
  }

The problem with this is that the one of them will win and overwrite the other.   The Google Charts code won't know what happened.  Combine them into one object and it should work:

 var options = {
    tooltip: { isHtml: true,  trigger: 'selection' },
   ...
  }
  
I don't know why this would have suddenly changed, but a browser update could have something to do with it.  

On Tue, Jan 17, 2017 at 10:06 AM, Michael H <sono...@gmail.com> wrote:
We have multiple charts and graphs that utilized HTML tooltips that are revealed on click. Quite suddenly, they all stopped working correctly and now display the HTML code instead of the display desired.:

Is anyone else experiencing this? Any help would be appreciated.

EXAMPLES

- Michael

--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages