How to align lable on link(edge)
Issue 1 :- label of link always parallel to link(edge) in 2D force graph.
Screenshots

How to rotate label of link parallel to link?
Issue 2 :- When I hover on node and directly move to edge or vice-versa than node hover or link hover is not working.
Directly hover node to link than link hover is not updated link value, link value is null. It same when mouse hover from link to node than also node value is null.
@shaliniBITC thanks for reaching out.
For 1: if you don't wish the label to remain horizontal, you can use your linkCanvasObject logic to rotate it.
Here's an example that implements a label rotation that follows the orientation of the link:
https://github.com/vasturiano/force-graph/blob/master/example/text-links/index.html#L56
As for issue 2, this has recently been fixed, so moving nodes out of the window shouldn't affect the hovering functionality.
@shaliniBITC thanks for reaching out.
For 1: if you don't wish the label to remain horizontal, you can use your
linkCanvasObjectlogic to rotate it. Here's an example that implements a label rotation that follows the orientation of the link: https://github.com/vasturiano/force-graph/blob/master/example/text-links/index.html#L56As for issue 2, this has recently been fixed, so moving nodes out of the window shouldn't affect the hovering functionality.
@vasturiano thanks for your response. I able to resolve my both issue.
@shaliniBITC Do you have a code example? I can not show LinkLabel on 2DForceGraph
hi @vasturiano, sorry for bothering, do you have the fix for the same setup but curved lines? it seems that labels are not aligned properly then