option = { backgroundColor: "", barWidth: 24, xAxis: { show: false, type: 'value' }, yAxis: [{ type: 'category', data: ['市公安', '柳东分局', '三江分局', '城中分局','柳北分局'], splitLine: { show: false }, axisTick: { show: false }, axisLine: { // 改变y轴颜色 show: false, }, axisLabel: { // 改变y轴字体颜色和大小 margin:15, textStyle: { color: "#C9DCFF", fontSize: 18 }, } },{ type: 'category', splitLine: { show: false }, axisTick: { show: false }, axisLine: { // 改变y轴颜色 show: false, }, data: [143, 315, 230, 432, 105], axisLabel: { show: true, fontSize: 28, } }], series: [{ type: 'bar', name: "问题", showBackground: true, backgroundStyle:{ color:'rgba(33,77,101, 1)', borderRadius: 30, }, itemStyle: { normal: { label: { show: false, //开启显示 }, barBorderRadius:30, borderWidth: 2, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0, color: '#4E9DFD' }, { offset: 1, color: '#00E9EA' }]) }, }, data: [4122,666,1345,2536,2589] }, { type: 'bar', name: "处理中", showBackground: true, backgroundStyle:{ color:'rgba(58,69,75, 1)', borderRadius: 30 }, itemStyle: { normal: { label: { show: false, //开启显示 }, barBorderRadius:30, borderWidth: 2, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0, color: '#FF913F' }, { offset: 1, color: '#FFDD77' }]) }, }, data: [73030,7041,16264,11783,20230] } ] };