From d3c5dfb9c08c8d1383de2a9cd7d62babf340f7f6 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 13 Jan 2019 05:05:08 +0800 Subject: [PATCH] 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 ed06d63d18..c7b73b5714 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);