Chart.js: TypeError: tooltip.text is undefined

Created on 24 Sep 2016  路  10Comments  路  Source: chartjs/Chart.js

Hi,

Somehow I can't get the custom tool-tips working. The error I'm getting is; "TypeError: tooltip.text is undefined" . Can you kindly assist ASAP. Below is a link to the source code on JSFiddle.

http://jsfiddle.net/koketsomabuela/vgsskhwg/

Thanks!

Most helpful comment

Ahhhhhh!!!!!

Thank you, Thank you, Thank you for the wonderful support @etimberg and the ChartJS team!!!!!!

All 10 comments

@KoketsoMabuela92 you fiddle seems to be working

Sorry - are you saying I should upgrade from version1.x or? Because it doesn't seem to work on my machine.

Please assist.

And thanks for the response.

I tagged this as version 1 since your fiddle is based on chart.js v1. When I ran your fiddle though, I didn't get any errors about the tooltip.text being undefined

So isn't there any clue maybe as to why I'm getting this error?

With your experience?

I don't have any ideas. To be clear, you are seeing the errors in the fiddle above?

The fiddle doesn't display the custom tooltips, and no tooltip whatsoever.

That's why I'm confused when you mention that the fiddle displays the tooltips on your side.

This is what I am seeing
tooltip text

@etimberg Thanks a lot for the feedback, however I'm still clueless as to what to fix and how.

Could you kindly assist with that?

Just to point me to the right direction.

Here's my fiddle; http://jsfiddle.net/koketsomabuela/vgsskhwg/3/

I think I made a mistake by sending an incorrect fiddle. My sincere apologies here @etimberg and the ChartJS support team.

Thanks!

The issue with the fiddle is that .css is supplied by jquery which wasn't included.

Here's a fixed version with jquery included: http://jsfiddle.net/nbw4tp0s/1/
Here's a fixed version where the jquery specific functions were replaced: http://jsfiddle.net/gxtdo4yr/2/

Ahhhhhh!!!!!

Thank you, Thank you, Thank you for the wonderful support @etimberg and the ChartJS team!!!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JAIOMP picture JAIOMP  路  3Comments

akashrajkn picture akashrajkn  路  3Comments

benmccann picture benmccann  路  3Comments

nanospeck picture nanospeck  路  3Comments

gabrieldesouza picture gabrieldesouza  路  3Comments