D3 Force Directed Graph Remove Text Cursor
When I add text to a node in a d3 force directed graph layout, the mouse pointer changes to a text cursor when I hover over the node. Is there a way to avoid this and always have i
Solution 1:
Add the following CSS to your text elements:
pointer-events: none;
This will prevent any mouse events for the text elements, i.e. the cursor won't change but you also won't be able to select the text.
Complete demo here.
Post a Comment for "D3 Force Directed Graph Remove Text Cursor"