When the onHover/options.hover.onHover callback invokes _chart.update() the duration of the hover animation is not being respected and it uses the animation.duration value.
Expected Behavior
The duration of the hover animation should be the one provided in options.hover.animationDuration instead of animation.duration.
Current Behavior
The hover animation has the same duration has the initial loading animation.
Possible Solution
When _chart.update() is called, the code enters the bufferedRequest branch in core.controller.js#L772. Therefore, the render method is called with a duration that is not the one provided for the hover effect.
Steps to Reproduce (for bugs)
Example gist: https://gist.github.com/ricardocosta89/f4751f9a73113df32c9be5cda10ddecf
Context
I wish to have a different animation duration for the hover effect.
Environment
- Chart.js version: 2.6.0
- Browser name and version: Chrome 58.0.3029.110 (64-bit)
- Operating System: macOS Sierra 10.12.5
When the
onHover/options.hover.onHovercallback invokes_chart.update()the duration of the hover animation is not being respected and it uses theanimation.durationvalue.Expected Behavior
The duration of the hover animation should be the one provided in
options.hover.animationDurationinstead ofanimation.duration.Current Behavior
The hover animation has the same duration has the initial loading animation.
Possible Solution
When
_chart.update()is called, the code enters thebufferedRequestbranch incore.controller.js#L772. Therefore, therendermethod is called with a duration that is not the one provided for the hover effect.Steps to Reproduce (for bugs)
Example gist: https://gist.github.com/ricardocosta89/f4751f9a73113df32c9be5cda10ddecf
Context
I wish to have a different animation duration for the hover effect.
Environment