Open IsmailM opened 7 years ago
Thanks! I'm thinking of actually moving the tooltip into the library by default - it seems like something that most people use. When i do this, I will default the CSS like you've suggested
better to use mouseenter
and mouseleave
Firstly, Nice library. :)
When using your example with tooltip, I would have really benefitted if the corresponding exemplar CSS for the tooltip was also provided in the README...
In particular, I feel it would have been nice to point out the
.venntooltip
class should have the CSS attributepointer-events
set tonone
. Otherwise, d3 callsmouseout
event way too many times (i.e. even if I'm still hovering over one of the venn diagram elements, the tooltip would disappear randomly (Possibly, because d3 thinks that I've moved onto.venntooltip
.This is the CSS I ended up using: