Skip to content

Commit

Permalink
Clean code.
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Jan 12, 2019
1 parent c03ba8b commit d3c5dfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chart/sunburst/SunburstPiece.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d3c5dfb

Please sign in to comment.