1👍
✅
Here’s a solution to my issue:
options.tooltips = {
// Hide the tooltips
backgroundColor: 'rgba(0,0,0,0)',
displayColors: false,
callbacks: {
labelTextColor: function () {
return 'rgba(0,0,0,0)';
},
labelColor: function () {
return {
borderColor: 'rgba(0, 0, 0, 0)',
backgroundColor: 'rgba(0, 0, 0, 0)'
}
}
},
// Highlight the HTML elements on bar hover
custom: function(tooltipModel) {
if (tooltipModel.body === undefined) {
// flip bool false
return;
}
if (/* ... */) {
// flip bool true
}
return;
}
};
Source:stackexchange.com