echarts [Bug] markLine 配置了 label 节点属性,鼠标 hover 时两个叠加的 label 无法切换层级显示,不配置label的情况下正常

tktrz96b  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(49)

Version

5.4.3

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MrtpAC2jBwA1gAyvd5IsHEe_owARlT-bnMJIMB4EJAwdFTQmgMJsPTA_px0AMT1ACIAnLkAQuXBJ-gO64lgIjHoXwkkJ1vLRGD4IoxWP1YNBGIMQYBnPUA4uqAHgVaA5_u9Ac5cNFko8srD4XRAHdugHALQD9fujMe9bCc7DSPiRbHYANxAA

Steps to Reproduce

option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line',
markLine: {
label: {
position: 'end',
color: '#7D93B8'
},
data: [
{type: 'average', name: '平均值'},
{yAxis: 193, name: '目标线'}
]
}
}
]
};

Current Behavior

markLine 配置了 label 节点属性,鼠标 hover 时两个叠加的 label 无法切换层级显示,不配置label的情况下正常

Expected Behavior

markLine 不管是否配置 label 属性,两个叠加的 label 切换层级显示

Environment

- OS: Window10
- Browser: Chrome 122.0.6261.129

Any additional comments?

No response

vwhgwdsa

vwhgwdsa1#

@xuf3333 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] markLine is configured with the label node property, and the two superimposed labels cannot be switched to display when the mouse hovers, and it is normal when the label is not configured

相关问题