提交 64aa9c5b 编写于 作者: P plainheart

fix(label): fix the bug that labelLine was mistakenly put into else branch and...

fix(label): fix the bug that labelLine was mistakenly put into else branch and should keep z unchanged.
上级 09102000
......@@ -2176,9 +2176,9 @@ class ECharts extends Eventful<ECEventDefinition> {
// TODO if el.emphasis.z2 is spcefied, what about textContent.
isGroup || (label.z2 = (el as Displayable).z2 + 2);
}
else {
if (labelLine) {
const showAbove = el.textGuideLineConfig && el.textGuideLineConfig.showAbove;
labelLine.z = z + 1;
labelLine.z = z;
labelLine.zlevel = zlevel;
isGroup || (labelLine.z2 = (el as Displayable).z2 + (showAbove ? 1 : -1));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册