Reputation: 17984
I'm building a polar graph visualisation that needs tooltips over its arcs. It works, except that the mouseover is imprecise: it is triggered by mousing over places with no shape, and does not get triggered when it should.
You can see it for yourself via my prototype on jsfiddle.
Any idea what i could do to fix that?
UPDATE
In fact, if i fill() the arcs, it shows the area that is really taking the event. It's perfectly responsive, although i guess i now need to find a way to make it not take into account the fill...
Upvotes: 0
Views: 368
Reputation: 21
You are drawing a line and thus you will only get an event in the middle of the line. Use instead shape
Upvotes: 2