Hi! i have some problem with function onHover on the Pie chart.
Expected Behavior
reaction to the event mousemove, when i used onHover
Current Behavior
no reaction to the event mousemove, when i used onHover. Although, reaction to the onClick works
Example my code
getOptions = () => {
return({
legend: {
display: false,
},
onClick: (e, legendItem) => {
this.setState({
isColor: legendItem[0]._model.label
});
},
onHover: (e, legendItem) => {
console.log('навели на часть pie, e:', e, 'legendItem: ', legendItem);
}
});
}
##Answer
hover: {
onHover: (e, legendItem) => {
console.log('навели на часть pie, e:', e, 'legendItem: ', legendItem);
}
}
but in documentation say
onHover function(event, legendItem) {}
event - includes pie item, legendItem - undefined
@Zulfia73 do you have a fiddle with a test of this?
I have experienced the same issue on a mixed (line/bar) chart.
Installing the latest version of Chart.js fixed the problem for me.
Closing since there is no test case for this