Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting Node labels (not the hovering label) Force-graph 2D; ReactJS #324

Open
nalindeepan007 opened this issue Jun 19, 2023 · 2 comments

Comments

@nalindeepan007
Copy link

@vasturiano

Currently, node labels are displaying like this, with nodeCanvasObject
the text is spilling out of circular node:

image

How can I set node labels like this when the text is longer (or a full sentence), so that it can wrap inside the circular node...
image

Thanks

@vasturiano
Copy link
Owner

@nalindeepan007 the implementation of how the node looks like, including the layout of your text is inside your implementation of nodeCanvasObject, so you can design it whichever way you'd like, using canvas instructions.

@nalindeepan007
Copy link
Author

is there any explicit function/argument in nodeCanvasObject for wrapping the text in node circle in this way?

thanks @vasturiano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants