Hello vasturiano! can you help me add labels to nodes? #44
-
|
I want to work with ThreeForceGraph since it is a bit more efficient for large numbers of nodes than 3d-force-graph but I really am struggling to create labels that exist above each node. I have an idea for a project that is simple conceptually but perhaps a bit difficult in realization. I'd like to visualize all the words in a dictionary as nodes, later I plan on connecting these nodes together in unique ways, ie synonyms, antonyms etc. but for now it is simple enough to just connect the words in alphabetical order to start with. I have a demo that I have created using 3d-force-graph but only with words beginning from A to C in English. When I try to load more words the frames drop, so I have been trying to use other more efficient libraries, but adding labels to nodes is not as straight forward. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
|
@ViridianPlexus thanks for reaching out. Have you tried using a code similar to this example on |
Beta Was this translation helpful? Give feedback.
@ViridianPlexus thanks for creating the example.
Well I actually get a fairly decent frame-rate from your example. In any case, it's mostly really dependent on the data size. In your case there's ~1800 nodes/links which should be fairly doable. The more nodes/links you have, the more computation is needed so naturally you'll eventually starting seeing an effect on the rendering performance.
One thing you can do however (and it's advisable to do so for rather large datasets), is to not animate the cooldown of the graph and jump immediately to its final state (or near final). In that case you won't notice any frame-rate jitter because it's essentially a single animation frame. You can achie…