option = { xAxis: [ { type: 'value', show:false,//网格线 min:80 }, { type: 'value', gridIndex: 1, min:80, show:false,//网格线 },{ type: 'value', show:false,//网格线 min:80, gridIndex: 2 }, ], yAxis: [ { axisTick: {show: false},//去掉间隔线 axisLine: {show: false,},//去掉轴线 data: ['成都','绵阳','攀枝花','泸州','德阳','广元','遂宁'], }, { axisTick: {show: false},//去掉间隔线 axisLine: {show: false,},//去掉轴线 data: ['成都','绵阳','自贡','泸州','德阳','广元','遂宁'], gridIndex: 1 },{ axisTick: {show: false},//去掉间隔线 axisLine: {show: false,},//去掉轴线 data: ['成都','绵阳','自贡','泸州','德阳','广元','遂宁'], gridIndex: 2 } ], grid: [ { top:'4%', right:'70%', bottom: '10%', left:'8%' }, { top:'4%', right:'35%', bottom: '10%', left:'37%', }, { top:'4%', right:'2%', bottom: '10%', left:'72%', } ], series: [ { type: 'bar', data: [82,83,85,86,87,88,95], itemStyle: { normal: { color: '#3297DB' } }, barWidth: '17', label: { normal: { show: true, color:'#fff', position: ['5','20%'], formatter:'{c}%' } } }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [92,92,92,92,92,], markLine:{ symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'end', formatter:'{c}%' }, lineStyle:{ color:'red' } }, }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [95,95,95,95,95], markLine:{ padding: [0, -70], symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'start', formatter:'{c}%' }, lineStyle:{ color:'#4FEE27' } }, }, { type: 'bar', data: [82,83,85,86,87,88,95], itemStyle: { normal: { color: '#3297DB' } }, barWidth: '17', label: { normal: { show: true, color:'#fff', position: ['5','20%'], formatter:'{c}%' } }, xAxisIndex: 1, yAxisIndex: 1 }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [92,92,92,92,92,], markLine:{ symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'end', formatter:'{c}%' }, lineStyle:{ color:'red' } }, xAxisIndex: 1, yAxisIndex: 1 }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [95,95,95,95,95], markLine:{ padding: [0, -70], symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'start', formatter:'{c}%' }, lineStyle:{ color:'#4FEE27' } }, xAxisIndex: 1, yAxisIndex: 1 }, { type: 'bar', data: [82,83,85,86,87,88,95], itemStyle: { normal: { color: '#3297DB' } }, barWidth: '17', label: { normal: { show: true, color:'#fff', position: ['5','20%'], formatter:'{c}%' } }, xAxisIndex: 2, yAxisIndex: 2 }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [92,92,92,92,92,], markLine:{ symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'end', formatter:'{c}%' }, lineStyle:{ color:'red' } }, xAxisIndex: 2, yAxisIndex: 2 }, { name: '', show:false, align: 'left', type: 'bar', yAxisIndex: 0, itemStyle: { normal: { color: '#3297DB' } }, barWidth: '0.01', label: { normal: { position: 'right', } }, data: [95,95,95,95,95], markLine:{ padding: [0, -70], symbol:'none',//去掉箭头 data:[ {type:'average',name:'平均值'} ], label:{ position:'start', formatter:'{c}%' }, lineStyle:{ color:'#4FEE27' } }, xAxisIndex: 2, yAxisIndex: 2 }, ] };