We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I could draw graph as I expected, and I now want to update the node without deleting the node.
firstly, I want to use relabelNodes , the label of the node changed but not reflected in the graph.
relabelNodes
G.nodes() Array [ old1", "old2" ]
var mapping = {"old1": "new1"}; var H = jsnx.relabelNodes(G, mapping, false)
G.nodes() Array [ new1", "old2" ]
The label seems to be updated, but the actual label doesn't change, it only changes with following
jsnx.draw(G)
but I don't want to redraw everything, just want to update the single label. It would be very appreciated if someone can correct me.
The text was updated successfully, but these errors were encountered:
Just hope this could be helpful. I had to work with d3 for this.
d3
text = d3.selectAll("text").filter(function() {return d3.select(this).text() == "the_label_text"}) text.style("fill", "gray")
something like this.
Sorry, something went wrong.
No branches or pull requests
Hi,
I could draw graph as I expected, and I now want to update the node without deleting the node.
firstly, I want to use
relabelNodes
, the label of the node changed but not reflected in the graph.The label seems to be updated, but the actual label doesn't change, it only changes with following
but I don't want to redraw everything, just want to update the single label.
It would be very appreciated if someone can correct me.
The text was updated successfully, but these errors were encountered: