Skip to content Skip to sidebar Skip to footer

D3.js Mouse Events Not Working

I have the following problem: I made a force graph containing of only nodes rendered as circles. Everything worked fine, I could change the color on hover, click on them and delete

Solution 1:

I found the problem in my css file. For whatever reason I at some point decided to give the container of the svg a negative z-index. So none of my mouse events fired.

Thanks to echonax for the tip with the fiddle. Figured it out by dissecting the code there.

Post a Comment for "D3.js Mouse Events Not Working"