Search code examples
html5-canvaschart.js

Hide/disable tooltips chart.js


I'm trying to hide the tooltips in a line chart using chart.js.

I have tried this code, but they never hide.

Chart.defaults.global.tooltipenabled = false;

You can see all the code here of the chart:

https://jsfiddle.net/w6zs07xx/ Thanks!


Solution

  • To turn off for a specific chart instead of in global defaults use this in the options object. Using v2.5.0

    options: {
        tooltips: {
             enabled: false
        }
    }