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
hideHover: true/'auto' shows the legend when hovering over it; hideHover: 'always' NEVER displays the legend
Which, except for the error I identified, is how the hideHover command works.
And while we are on the topic, it makes more sense to me to have the options for 'hideHover' be:
false = ALWAYS show;
true = NEVER show;
'auto' = show/hide on mouse in/out
All this being said, I really like Morris and am excited to contribute to this project further.
The false, true/'auto' and 'always' options are a concession to backwards-compatibility, hence why they're a bit odd.
You're correct that the behaviour doesn't match the docs, though. I've left a comment on the pull request. If you can fix that, I'll get it merged ASAP.
When using option "hideHover: true/'auto', the legend is still displayed after my mouse leaves the the chart area.
Line/Bar.prototype.onHoverOut is currently:
=== 'auto'
and should be
!== false
The text was updated successfully, but these errors were encountered: