option = { tooltip: { trigger: 'axis', axisPointer: { type: 'line' }, formatter: function(params) { var lines = []; params.forEach(function(param) { var line = param.seriesName + ': ' + param.value; lines.push(line); }); return lines.join('<br>'); } }, xAxis: { type: 'category', data: ['11-1', '11-2', '11-3', '11-4', '11-5', '11-6', '11-57'] }, yAxis: [{ type: 'value', name: '温度', position: 'left', offset:40, splitNumber:5, splitLine: { show: true // 设置不显示 y 轴刻度线 }, axisLine: { lineStyle: { color: '#aaaaaa' } } }, { type: 'value', name: '风速', position: 'left', offset:0, splitLine: { show: false // 设置不显示 y 轴刻度线 }, splitNumber:5, axisLine: { lineStyle: { color: '#aaaaaa' } } },{ type: 'value', name: '湿度', position: 'right', splitNumber:5, offset:0, splitLine: { show: false // 设置不显示 y 轴刻度线 }, axisLine: { lineStyle: { color: '#aaaaaa' } } }, { type: 'value', name: '辐照', position: 'right', offset:30, splitNumber:5, splitLine: { show: false // 设置不显示 y 轴刻度线 }, axisLine: { lineStyle: { color: '#aaaaaa' } } } , { type: 'value', name: '气压', position: 'right', offset:60, splitLine: { show: false // 设置不显示 y 轴刻度线 }, splitNumber:5, axisLine: { lineStyle: { color: '#aaaaaa' } } }], series: [{ name: '温度', type: 'line', data: [4, 5, 3, 9, 5, 4, 6], smooth: true, yAxisIndex: 0 }, { name: '风速', type: 'line', data: [6, 2, 3, 6,8,7, 2], smooth: true, yAxisIndex: 1 },{ name: '湿度', type: 'line', data: [30, 50, 80, 20, 80, 64, 71], smooth: true, yAxisIndex: 2 },{ name: '辐照', type: 'line', data: [132, 324, 80, 120, 280, 350, 564], smooth: true, yAxisIndex:3 } ,{ name: '气压', type: 'line', data: [853, 245, 562, 423, 542, 350, 610], smooth: true, yAxisIndex: 4 }] };