force-graph icon indicating copy to clipboard operation
force-graph copied to clipboard

Showing link label onLinkHover

Open Aassifh opened this issue 2 years ago • 2 comments

Hi, I'm currently trying to show link label on hover, the onLinkHover function provides only the current link and the previous one, i don't know how to access the link in order to show the link label.

Can somebody show me how to do it ? plz

I've spent a hole day trying to make it work

Thank you

Aassifh avatar Aug 20 '21 15:08 Aassifh

@Aassifh have you tried the linkLabel method? It includes the link object so you can customize the data shown in the tooltip.

vasturiano avatar Aug 20 '21 18:08 vasturiano

Thank you i was able to set the link label when hovering with linkLabel method

Aassifh avatar Aug 23 '21 13:08 Aassifh