Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

LineChart mouseout behavior is goofed up #73

Closed
wjaspers opened this issue Sep 2, 2014 · 3 comments
Closed

LineChart mouseout behavior is goofed up #73

wjaspers opened this issue Sep 2, 2014 · 3 comments

Comments

@wjaspers
Copy link

wjaspers commented Sep 2, 2014

I think this may actually be a problem with DC-js, but I've discovered you need to use 'mouseleave' instead of 'mouseout' when working with a line chart, or the pointer axes are left on-screen.

@caged
Copy link
Owner

caged commented Oct 21, 2014

Thanks for the report. It'd be great if you could provide a working example.

@caged caged closed this as completed Oct 21, 2014
@martinduparc
Copy link

Using mouseleave instead of mouseout fixes the issue

@gordonwoodhull
Copy link

I know this is ancient, but in case anyone runs into this, the issue is almost certainly that dc.js is not properly namespacing all of its event handlers (dc-js/dc.js#842).

But you should always namespace your event handlers too!

So invoke d3.tip like this

            .on("mouseover.some-unique-id", tip.show)
            .on("mouseout.some-unique-id", tip.hide)

and then dc.js won't overwrite your event handlers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants