I asked this question a few days ago earlier, but I donβt think that anyone other than paxRoman really found out what I asked, since it was difficult to describe without an example.
However, we managed to figure out what might be my problem, and I was able to install the code on bl.ocks.org so you can see an example of what I mean!
Here is an example: http://bl.ocks.org/3020018
Each time the data is updated (in this example, just reading from the json file), all nodes are recreated and added back to the drawing.
What i want to do
I want the nodes to be updated without any changes.
If a new node exists in the new array, it should appear, like everything that is happening now, if something exists in the previous array, but not in the new one, it just has to disappear.
As you see in the example, this is not what is happening, and I could not understand why last week.
So my question is:
What am I actually doing wrong? Is this my lack of links? What is the problem? The two of us spent more than an hour looking at it yesterday and couldn't understand, I spent a good week on it now without much progress: /
My old question / post is still there , but it is poorly worded and I had no example to show.
Thanks for helping me :)
flexd source share