Skip to content

Commit 491d30b

Browse files
authored
Merge pull request apache#12915 from liunana1230/patch-1
fix(tree) The chart line color is not updated when updating a node's lineStyle
2 parents 4ffd864 + 45e74ea commit 491d30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chart/tree/TreeView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ function drawEdge(
469469

470470
graphic.updateProps(edge, {
471471
shape: getEdgeShape(seriesScope, sourceLayout, targetLayout),
472-
style: {opacity: 1}
472+
style: zrUtil.defaults({opacity: 1}, seriesScope.lineStyle)
473473
}, seriesModel);
474474
}
475475
}
@@ -499,7 +499,7 @@ function drawEdge(
499499
parentPoint: [targetLayout.x, targetLayout.y],
500500
childPoints: childPoints
501501
},
502-
style: {opacity: 1}
502+
style: zrUtil.defaults({opacity: 1}, seriesScope.lineStyle)
503503
}, seriesModel);
504504
}
505505
}

0 commit comments

Comments
 (0)