Accepted answer

i found the answer here for anyone interested. it wasn't as simple as i originally thought; you have to create a few different elements to get the text to show up.

add text/label onto links in d3 force directed graph

Related Query

More Query from same tag