D3.JS等级边缘与直边捆绑
我正在尝试修改找到的代码在这里弯曲。
我尝试使用以下功能替换以下功能
line = d3.lineRadial()
.curve(d3.curveBundle.beta(0.85))
.radius(d => d.y)
.angle(d => d.x)
,
line = d3.line()
.x(d => d.x)
.y(d => d.y)
但似乎并没有解决问题。
我想念什么?
I am trying to modify the code found here so that the edges are straight and not curved.
I have tried replacing the following function
line = d3.lineRadial()
.curve(d3.curveBundle.beta(0.85))
.radius(d => d.y)
.angle(d => d.x)
with
line = d3.line()
.x(d => d.x)
.y(d => d.y)
but it doesn't seem to be doing the trick.
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,我需要做的是将参数从
0.85
设置为
0
。Turns out what I needed to do was to set the parameter on
from
0.85
to0
.