-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Milestone
Description
Expected Behavior
You can set onClick function in the options to catch events on chart area, as following:
options: {
responsive: true,
onClick() {
console.log("click");
},
plugins: {
legend: {
display: true
}
}
}The expectation is that the legend is continuing working as usual, hiding/showing the datasets.
Current Behavior
With the above configuration, the legend doesn't work anymore and all events are caught by the onClick function set at options level.
Steps to Reproduce
https://codepen.io/stockinail/pen/pogRZEb
Environment
- Chart.js version: dist/master
- Browser name and version: FF 85.0.2