datastorm-open / visNetwork

R package, using vis.js library for network visualization
Other
545 stars 125 forks source link

Independently change node size while text is within node #405

Open mrml500 opened 3 years ago

mrml500 commented 3 years ago

Hello - thanks for creating this package.

I have a network where I want to:

I can see you can change the size of the node if you use "dot" and "square", however, the text does not go within the node. Alternatively, using "circle" and "box", the text is within the node, but it only scales to the text within the node (and also "box" is not a square - so not what I'm after).

I've seen a similar issue posted here https://github.com/datastorm-open/visNetwork/issues/161 (and https://github.com/datastorm-open/visNetwork/issues/49 https://github.com/datastorm-open/visNetwork/issues/121) and it's now closed, but I didn't see/understand the solution?

Any suggestions?