You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to put the label to the right of a node. My use case is adding a legend to the graph. Label-centered-at-the-bottom gets quickly takes up a lot of vertical space and gets hard to follow when there are a lot of groups to show.
I've tried a number of ways with margin, font alignment, circle-physics-off-with-small-size but could not get the text to line up properly.
Idealy, you would be able to choose top/bottom/left/right for the position of the node label (in an attribute like "labelPosition")
Current -> Desired (example from OrientDB Studio)
The text was updated successfully, but these errors were encountered:
That would be great. Feel free to open a draft PR once you have anything even if it doesn't work (it's much easier to offer guidance while looking at the code).
The place to start are the files lib/network/modules/components/Node.js which invokes the label rendering and maintains info about it's shape and position and lib/network/modules/components/shared/Label.js which renders the label itself.
I would like to be able to put the label to the right of a node. My use case is adding a legend to the graph. Label-centered-at-the-bottom gets quickly takes up a lot of vertical space and gets hard to follow when there are a lot of groups to show.
I've tried a number of ways with margin, font alignment, circle-physics-off-with-small-size but could not get the text to line up properly.
Idealy, you would be able to choose top/bottom/left/right for the position of the node label (in an attribute like "labelPosition")
Current -> Desired (example from OrientDB Studio)
The text was updated successfully, but these errors were encountered: