简体   繁体   中英

Dagre / D3 Rendering Nodes and Edges/Arrowheads at a larger size

I have this graph but it appears that the nodes and edges/arrowheads are rendering kind of small. The graph is being rendered using Dagre. I'm just wondering if there is a way to make the nodes and edges/arrowheads larger but keep them within the svg..is that possible? Or what would be causing these things to look smaller? Or is this normal functionality?

在此输入图像描述

Here as well: is it possible to increase the size of the nodes and edges but keep it fit within the svg as it currently is?

在此输入图像描述

Thanks

You can try changing the stroke-width on the edge

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM