Dagre / D3渲染节点和边缘/箭头的尺寸较大

时间:2016-08-26 23:13:11

标签: javascript angularjs d3.js svg dagre-d3

我有这张图,但似乎节点和边/箭头呈现的很小。该图表正在使用Dagre呈现。我只是想知道是否有一种方法可以使节点和边缘/箭头更大但是将它们保留在svg中这是可能的吗?或者是什么导致这些东西看起来更小?或者这是正常的功能吗?

enter image description here

在这里:是否可以增加节点和边缘的大小,但是它是否适合当前的svg?

enter image description here

由于

1 个答案:

答案 0 :(得分:1)

您可以尝试更改边缘的stroke-width

g.setEdge("A", "B", {
  style: "stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;",
  arrowheadStyle: "fill: #f66"
});

http://cpettitt.github.io/project/dagre-d3/latest/demo/style-attrs.html

相关问题