You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/01/12 21:55:28 UTC

[incubator-echarts] 03/05: Clean code.

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

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

commit d3c5dfb9c08c8d1383de2a9cd7d62babf340f7f6
Author: sushuang <su...@gmail.com>
AuthorDate: Sun Jan 13 05:05:08 2019 +0800

    Clean code.
---
 src/chart/sunburst/SunburstPiece.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/chart/sunburst/SunburstPiece.js b/src/chart/sunburst/SunburstPiece.js
index ed06d63..c7b73b5 100644
--- a/src/chart/sunburst/SunburstPiece.js
+++ b/src/chart/sunburst/SunburstPiece.js
@@ -86,15 +86,15 @@ SunburstPieceProto.updateData = function (
 
     var itemModel = node.getModel();
     var layout = node.getLayout();
-    if (!layout) {
-        console.log(node.getLayout());
-    }
+    // if (!layout) {
+    //     console.log(node.getLayout());
+    // }
     var sectorShape = zrUtil.extend({}, layout);
     sectorShape.label = null;
 
     var visualColor = getNodeColor(node, seriesModel, ecModel);
 
-    fillDefaultColor(node, seriesModel, visualColor)
+    fillDefaultColor(node, seriesModel, visualColor);
 
     var normalStyle = itemModel.getModel('itemStyle').getItemStyle();
     var style;
@@ -414,7 +414,7 @@ function isNodeHighlighted(node, activeNode, policy) {
     }
 }
 
-// Fix tooltip callback function params.color incorrect when pick a default color 
+// Fix tooltip callback function params.color incorrect when pick a default color
 function fillDefaultColor(node, seriesModel, color) {
     var data = seriesModel.getData();
     data.setItemVisual(node.dataIndex, 'color', color);


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