option = { color:['#ED7D31','#4472C4','#FFC000','#A5A5A5'], tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' } } }, toolbox: { feature: { dataView: {show: true, readOnly: false}, magicType: {show: true, type: ['line', 'bar']}, restore: {show: true}, saveAsImage: {show: true} } }, legend: { data: ['2小时快速修复', '常规施工工程', '准时百分比', '累计准时百分比'] }, xAxis: [ { type: 'category', data: [ '3月', '4月', '5月', '6月', '7月'], axisPointer: { type: 'shadow' } } ], yAxis: [ { type: 'value', name: '水量', min: 0, max: 250, interval: 50, axisLabel: { formatter: '{value} ml' } }, { type: 'value', name: '温度', min: 0, max: 25, interval: 5, axisLabel: { formatter: '{value} °C' } } ], series: [ { name: '2小时快速修复', type: 'bar', stack: '施工统计', data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3] }, { name: '常规施工工程', type: 'bar', stack: '施工统计', data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3] }, { name: '准时百分比', type: 'line', yAxisIndex: 1, data: [2.0, 2.2, 3.3, 4.5, 6.3] }, { name: '累计准时百分比', type: 'line', yAxisIndex: 1, data: [10, 14, 13.3, 14.5,15] } ] };
option = { color:['#ED7D31','#4472C4','#FFC000','#A5A5A5'], tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' } } }, toolbox: { feature: { dataView: {show: true, readOnly: false}, magicType: {show: true, type: ['line', 'bar']}, restore: {show: true}, saveAsImage: {show: true} } }, legend: { data: ['2小时快速修复', '常规施工工程', '准时百分比', '累计准时百分比'] }, xAxis: [ { type: 'category', data: [ '3月', '4月', '5月', '6月', '7月'], axisPointer: { type: 'shadow' } } ], yAxis: [ { type: 'value', name: '水量', min: 0, max: 250, interval: 50, axisLabel: { formatter: '{value} ml' } }, { type: 'value', name: '温度', min: 0, max: 25, interval: 5, axisLabel: { formatter: '{value} °C' } } ], series: [ { name: '2小时快速修复', type: 'bar', stack: '施工统计', data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3] }, { name: '常规施工工程', type: 'bar', stack: '施工统计', data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3] }, { name: '准时百分比', type: 'line', yAxisIndex: 1, data: [2.0, 2.2, 3.3, 4.5, 6.3] }, { name: '累计准时百分比', type: 'line', yAxisIndex: 1, data: [10, 14, 13.3, 14.5,15] } ]};