You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Daniel, I presume that this is an annoying and amateur question to ask (of which I am both, unfortunately), but I am trying to use your library and want to add a custom button for adding nodes. However, when I try to change the data (using setState nodes and links) that a Graph is receiving as props, I get an error:
This is the code I am trying:
Please delete if this is unrelated or you think not worth time. Thanks for your help.
The text was updated successfully, but these errors were encountered:
Hi there @slackermorris no such thing as an amateur question. In this case, I think you could look closer to your code and pay attention to details. Notice that in newData = { newNodes, newLinks }; you are breaking the data contract with react-d3-graph. All should be fine if you keep the properties naming correctly along the way.
Hi Daniel, I presume that this is an annoying and amateur question to ask (of which I am both, unfortunately), but I am trying to use your library and want to add a custom button for adding nodes. However, when I try to change the data (using setState nodes and links) that a Graph is receiving as props, I get an error:
This is the code I am trying:
Please delete if this is unrelated or you think not worth time. Thanks for your help.
The text was updated successfully, but these errors were encountered: