Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

How to Disable/Switch Off Tooltips on hover?

Open BuddyNote opened this issue 10 years ago • 9 comments

In the v2 docs there are instructions to change the tooltip .styles but there is no instruction to turn the tooltip feature off (on hover).

Any help is greatly appreciated

BuddyNote avatar Feb 12 '16 03:02 BuddyNote

I think options.tooltips.enabled should be set to false

etimberg avatar Feb 12 '16 13:02 etimberg

Closed as resolved

etimberg avatar Feb 27 '16 00:02 etimberg

The whole options.tooltips is being ignored for me. None of the settings passed to tooltips are applied

IgnusG avatar Aug 09 '16 11:08 IgnusG

@IgnusG Try toolTip instead of tooltips.

Edit: Nevermind, still happening for me

sifex avatar Jan 10 '17 04:01 sifex

@sifex just tested this and it works as expected, ie. no tooltip was shown.

var options = {
  tooltips: {
    enabled: false
  }
};
new Chart(ctx, {
  type: 'line',
  data: data,
  options: options
});

etimberg avatar Jan 10 '17 11:01 etimberg

@etimberg Yea, got it to work, currently using the angular version and it seems to operate differently when dealing with multiple sets of data.

sifex avatar Jan 10 '17 12:01 sifex

I've spend hours on this, none of the instructions worked, including all on this page until I eventually noticed that the Namespace is options.plugins.tooltip

options: { plugins: { tooltip: { enabled: false } } } gets rid of it.

perplexed99 avatar Jul 18 '21 11:07 perplexed99

I've spend hours on this, none of the instructions worked, including all on this page until I eventually noticed that the Namespace is options.plugins.tooltip

options: { plugins: { tooltip: { enabled: false } } } gets rid of it.

just to add some more info on this , thats mainly because of the namespace changes in v3 also note if you want to completely disable the hover effect you will need to pass { hover : false } to the root of the options object

happy hacking!

EssamEid614 avatar Aug 07 '21 14:08 EssamEid614

I want to completely disable hover effects I have followed this chart.js tutorial and setting pointHoverRadius = 0 is not working for me in Chart JS 4.4.0 https://www.youtube.com/watch?v=iezjDg-OGP8

PrivateRoDee avatar Oct 14 '23 22:10 PrivateRoDee