在option中, yAxis里面设置splitline的样式
yAxis: {
type: 'value',
axisLabel: { // 坐标轴刻度标签配置
color: '#70bfbc', // 字体颜色
},
axisLine: {
show: true,
},
splitLine: {
show: true,
lineStyle: {
color: "rgba(130, 198, 255, 0.1)", // 使用RGBA格式,设置透明度为0.5(半透明)
width: 1,
type: "dashed", // 将实线改为虚线,可选 "dashed" 或 "dotted"
},
},
},