VivaGraphJS
VivaGraphJS copied to clipboard
Attach text to markers on links
trafficstars
Hi,
I have added markers on the links connecting two nodes using svg marker elements.Now I want to add text beside those markers showing the value for those particular markers.
Is there any way out to add text beside svg markers.Please help.
Thanks, Richa
Seems like this is pure SVG question, not specific to vivagraph... I'd recommend to try to achieve this in pure SVG first (or ask for help on StackOverflow).
You could also just attach text based on node position using layout.getNodePosition().