You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have the function in the wrong spot, in the pie chart you have it in the root of the options object but in the bar chart you have placed it in the hover section.
The hover section is just for some configuration and not for the actual onHover method. So if you take it out of there it works normally
Expected behavior
need to set custom pattern effect on hover on each bar
Current behavior
onHover is not working
Reproducible sample
https://github.com/karthik-noveau/chart-js
Optional extra steps/info to reproduce
npm install
npm start
hover on bar chart
Possible solution
No response
Context
i'm trying to add the pattern effect on hover each chart ( pie, dounghnut, bar, area line, bubble )
chart.js version
4.4.7
Browser name and version
chrome Version 131.0.6778.205
Link to your project
https://github.com/karthik-noveau/chart-js
The text was updated successfully, but these errors were encountered: