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

showing node name in "Highlight nodes/links" example

Open Ji-Shao opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. In Highlight nodes/links example, is it possible to display names of highlighted node and its connected node(s)?

Ji-Shao avatar Jan 31 '21 10:01 Ji-Shao

@Ji-Shao you can use graph2ScreenCoords to get the coordinates of the point and in onNodeHover callback you can place the tooltips/names accordingly

sr1k3sh avatar Mar 18 '21 10:03 sr1k3sh