Hide/disable tooltips chart.js

user1937021 picture user1937021 · Apr 30, 2016 · Viewed 44.9k times · Source

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!

Answer

Jon picture Jon · Jun 30, 2017

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
    }
}