How to Disable/Switch Off Tooltips on hover?
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
I think options.tooltips.enabled should be set to false
Closed as resolved
The whole options.tooltips is being ignored for me. None of the settings passed to tooltips are applied
@IgnusG Try toolTip instead of tooltips.
Edit: Nevermind, still happening for me
@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 Yea, got it to work, currently using the angular version and it seems to operate differently when dealing with multiple sets of data.
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.
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!
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