SIGN IN SIGN UP
chartjs / Chart.js UNCLAIMED

Simple HTML5 Charts using the <canvas> tag

0 0 80 JavaScript

Fix 3267 Add "onHover" functionality for legend (#3271)

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).
L
Lubomir Sotirov committed
38f85c98b5821091c44df6bf07da937b3b1a464f
Parent: 52cdff5
Committed by Simon Brunel <simonbrunel@users.noreply.github.com> on 9/8/2016, 12:42:42 PM