option = { //你的代码 backgroundColor: "#061740", tooltip: { trigger: 'axis' }, xAxis: { type: 'category', data: ['2022.01', '2022.02', '2022.03', '2022.04', '2022.05', '2022.06', '2022.07', '2022.08', '2022.09', '2022.10', '2022.11', '2022.12'] }, yAxis: { type: 'value', axisLabel: { textStyle: { color: '#F5F5F5', //更改坐标轴文字颜色 fontSize: 12 //更改坐标轴文字大小 } }, splitLine: { show: true, lineStyle: { color: '#979797', type: [5, 10], }, }, }, series: [ { name: '问题数', type: 'line', symbol: 'circle', symbolSize: 14, itemStyle: { shadowColor: '#fff', shadowBlur: 15, borderColor: '#aaa', }, color: '#1EC5EA', data: [9, 40, 30, 42, 30, 25, 43, 15, 31, 24, 41, 30], markLine: { symbol: ['none', 'none'], data: [ { name: '上限控制', yAxis: 40, lineStyle: { type: 'solid', color: '#EF8181', width: 1 } // 样式: 线型、颜色、线宽 }, { name: '平均数', yAxis: 25, lineStyle: { type: 'solid', color: '#33CCCC', width: 1 } // 样式: 线型、颜色、线宽 }, { name: '下线控制', yAxis: 5, lineStyle: { type: 'solid', color: '#FFDF8E', width: 1 } // 样式: 线型、颜色、线宽 }, ] } }, ] };