You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by de...@apache.org on 2018/09/04 09:46:23 UTC

[incubator-echarts] 01/04: fix(sankey): fix in the vertical orient the leaf nodes align in the view

This is an automated email from the ASF dual-hosted git repository.

deqingli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 698e3190750cf3947b94f57d4d84a8fc61c43a0a
Author: deqingli <an...@gmail.com>
AuthorDate: Tue Sep 4 17:40:59 2018 +0800

    fix(sankey): fix in the vertical orient the leaf nodes align in the view
---
 src/chart/sankey/sankeyLayout.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chart/sankey/sankeyLayout.js b/src/chart/sankey/sankeyLayout.js
index f37fb84..05add6d 100644
--- a/src/chart/sankey/sankeyLayout.js
+++ b/src/chart/sankey/sankeyLayout.js
@@ -166,7 +166,7 @@ function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient) {
         }
     }
 
-    moveSinksRight(nodes, x);
+    moveSinksRight(nodes, x, orient);
 
     if (orient === 'vertical') {
         kx = (height - nodeWidth) / (x - 1);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org