force-graph
force-graph copied to clipboard
Is there any way to update the graph only by one frame?
For example, I updated the color of the node to make it work. If the graph has been rendered, it has no effect. Can you avoid node movement?
@Yaowen-Pan have you re-invoked .nodeColor(...)
when you changed the node's color? That's required to tell the component that a node color change has happened.
i do this :node.x = "#000"
Also need to modify the text. like this: node.text = "xxx"