Manipulating d3 network diagram

旧街凉风 提交于 2019-12-25 06:38:36

问题


I have a question regarding d3 network diagram. Say I have a simple, one like here in my jsFiddle enter link description here , diagram.And Id like to have a function, for example that deletes the middle circle and connects the first and the third one. Could someone please assist me on this ?

[['L1', 'L2'], ['L2', 'L3']]

Probably its not gonna be 'hard delete', but hiding or not showing ? Because also Id like to know a way how could i bring that middle, deleted circle back and the original diagram back.

Ideally i would love someone to assist me with some snippets of two functions which one would delete the middle circle and the other one (say by pressing a button) would bring it back.

Also we could make an assumption that each circle has an id and the connections between them would have Ids as well, if that makes stuff easier of course.

来源:https://stackoverflow.com/questions/26495048/manipulating-d3-network-diagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!