如何隐藏Echarts中line-line的markLine中的标签?或者如何改变标签风格?
我试过label: false
,没有工作。
series: [
markLine: {
silent: true,
symbol: false,
label: false,
data: [{
yAxis: 100
}, {
yAxis: 400
}],
lineStyle: {
normal: {
type: "solid",
color: "red"
}
}
}
]
答案 0 :(得分:2)
应该是:
series: [
markLine: {
label: {
normal: {
show: false
}
}
}
]
normal
是鼠标悬停或触地时的样式。否则,它将是emphasis
。
请参阅doc。