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
I removed all nodes before I set new nodes, but the cluster is still there, any method to remove it?
A temporary solution: container.select('g.output').selectAll('.clusters').remove();
The text was updated successfully, but these errors were encountered:
If you search on the source code of that fork, the create_clusters.js, has the answer of why the clusters are not being removed, is because are not merged the enter selection of D3 clusters, with the exit selection of D3. I mentioned that because the merge between the enter and exit selection is the pattern that D3 uses to know which cluster has to be removed and which clusters enter or keep in the graph.
Just take a look at this repository, build it, because has support to D3 V7 with ES6 modules, and it has support for typescript too.
I removed all nodes before I set new nodes, but the cluster is still there, any method to remove it?
A temporary solution:
container.select('g.output').selectAll('.clusters').remove();
The text was updated successfully, but these errors were encountered: