More comprehensive mouse Leave/Enter

Dec 7, 2009 at 5:40 PM

Hi Mikhail,

This is not a D3 question but maybe D3 have something that will help me.

The problem: I have some ViewportPolylines that are thick and some are dashed, and is difficult to stay in the line... i cant put a bigger line, i need to have a comprehensive Mouse Enter.

Something like the LiveGeometry project has.

Can you give me some hints, or D3 have something for this?


Rafael Carlos

Dec 10, 2009 at 3:08 PM


Do you mean some kind of line highlighting when user clicked (or 'selected') it?

This can be reached by some effect applied to line.

Best regards,


Dec 11, 2009 at 1:10 PM


I have a dashed line that is very difficult to maintain the mouse over the line... I need my line to be thin but a large border to be over.

I need that  the mouse enter event occur when I'm near the dashed line and not over.

The same with Mouse leave, I want it to occur when i'm far from the line.

Best regards,

Rafael Carlos

Dec 12, 2009 at 3:31 PM

Hi Rafael,

you can try to implement the following:

1) create a line with large thickness and transparent fill (Stroke property)

2) create a dashed-line chart on the same data

3) subscribe for mouse enter and leave events of both controls, and implement some logic that will not notify about mouse entering or leaving when mouse have actually moved from one of these charts to another.

Maybe this can help you.

Best regards,