mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
38f85c98b5
Add "onHover" to the legend options that will hold a user defined function (default is null) and called when a "mousemove" event is registered on top of a label item, with same parameters as the "onClick" option. Also introduced logic that determines if the type of event passed to the legend "handleEvent" function is one we can handle. Currently allowing "click" and "mousemove" events. If the event is not one of those we stop the function execution (this is for the sake of reusing the legend hitbox calculations). |
||
---|---|---|
.. | ||
core.animation.js | ||
core.canvasHelpers.js | ||
core.controller.js | ||
core.datasetController.js | ||
core.element.js | ||
core.helpers.js | ||
core.js | ||
core.layoutService.js | ||
core.legend.js | ||
core.plugin.js | ||
core.scale.js | ||
core.scaleService.js | ||
core.title.js | ||
core.tooltip.js |