We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reaction to the event mousemove, when i used onHover
no reaction to the event mousemove, when i used onHover. Although, reaction to the onClick works
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
hover: { onHover: (e, legendItem) => { console.log('навели на часть pie, e:', e, 'legendItem: ', legendItem); } }
onHover function(event, legendItem) {}
event - includes pie item, legendItem - undefined
The text was updated successfully, but these errors were encountered:
@Zulfia73 do you have a fiddle with a test of this?
Sorry, something went wrong.
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
No branches or pull requests
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
event - includes pie item, legendItem - undefined
The text was updated successfully, but these errors were encountered: