series: [
{
// 设置标线
markLine: {
symbol: "none", //标线箭头取消
data: [
{
yAxis: 100,
name: "语音通讯",
lineStyle: { color: "rgba(0, 247, 255, 1)" },
label: { formatter: "语音通讯" },
},
{
yAxis: 150,
name: "视频通讯",
lineStyle: { color: "rgba(0, 247, 255, 1)" },
label: { formatter: "视频通讯" },
},
],
label: {
position: "insideEndTop",
color: "#00F7FF",
fontSize: 10,
fontFamily: "SourceHanSansCN-Regular",
},
lineStyle: {
// color: "rgba(0, 247, 255, 1)",
type: "solid",
with: 1,
},
},
},
],
结果如图