d3.j radial tree node links different sizes

元气小坏坏 提交于 2020-02-06 07:55:30

问题


I would like to change the link length between e.g. the first node generation to the second -> having in the end individual lengths to match for longer node titles. How can I do that?

I couldn't find anything related to it but as I'm relatively new to d3.js/JS I maybe just missed the right keywords

I made a JSFiddle with the problem: https://jsfiddle.net/j0kaso/0c9ed6Lv/47/

So with regards to the example, I would like to move children level 1 & 2 closer to the root/ level 0.

In case this does not work, how would I increase the distance between the nodes automatically, so that the long titles would fit in nicely?

Hope somebody has a working example or could point me in the right direction - anyway I appreciate any hints & comments!

Thanks ;-)

来源:https://stackoverflow.com/questions/57824793/d3-j-radial-tree-node-links-different-sizes

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