如何在Echarts系列线的markLine中隐藏标签?或者如何更改标签样式?
我试过了label: false,不行。
series: [
markLine: {
silent: true,
symbol: false,
label: false,
data: [{
yAxis: 100
}, {
yAxis: 400
}],
lineStyle: {
normal: {
type: "solid",
color: "red"
}
}
}
]
Run Code Online (Sandbox Code Playgroud)
它应该是:
series: [
markLine: {
label: {
normal: {
show: false
}
}
}
]
Run Code Online (Sandbox Code Playgroud)
normal是鼠标未悬停或未按下时的样式。否则,它将是emphasis。
请参阅文档。