未验证 提交 363f3e00 编写于 作者: S sushuang 提交者: GitHub

Merge pull request #12191 from susiwen8/#12189

Fix sankey link value is 0, node will disappear
......@@ -458,6 +458,7 @@ function relaxLeftToRight(nodesByBreadth, alpha, orient) {
if (node.inEdges.length) {
var y = sum(node.inEdges, weightedSource, orient)
/ sum(node.inEdges, getEdgeValue, orient);
isNaN(y) && (y = 0);
if (orient === 'vertical') {
var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;
node.setLayout({x: nodeX}, true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册