100pah commented on a change in pull request #10084: Update sankey diagram with 
levels setting, reducing code size and so on.
URL: 
https://github.com/apache/incubator-echarts/pull/10084#discussion_r264231167
 
 

 ##########
 File path: src/chart/sankey/sankeyLayout.js
 ##########
 @@ -175,7 +171,8 @@ function computeNodeBreadths(nodes, edges, nodeWidth, 
width, height, orient, nod
     if (nodeAlign && nodeAlign !== 'left') {
         adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);
     }
-    var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width 
- nodeWidth) / maxDepth;
+    var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth
+                : (width - nodeWidth) / maxDepth;
 
 Review comment:
   Code style about indent: the same as the previous comment.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to