xAxis: [ { type: 'category', data: ['1号馆', '2号馆', '3号馆', '4号馆', '5号馆', '6号馆', '7号馆', '8号馆', '9号馆', '10号馆', '11号馆', '12号馆'], axisLabel: { rotate: 30, //这个是倾斜角度 show: true, textStyle: { color: '#fff' } }, axisLine: { // 坐标轴线 lineStyle: { color: 'rgba(85,85,85,0.4)' }, }, axisTick: { //刻度线 show: false, lineStyle: { color: 'rgba(85,85,85,0.4)' } }, axisPointer: { type: 'shadow' }, } ], yAxis: [ { name: '数量/个', type: 'value', nameTextStyle: { fontSize: 14, color:'#fff' }, axisLabel: { show: true, textStyle: { color: '#fff' } }, axisLine: { lineStyle: { color: 'rgba(85,85,85,0.4)' } }, axisTick: { show: false, lineStyle: { color: 'rgba(85,85,85,0.4)' } }, splitLine:{ //去除网格线 show: true, lineStyle: { color: ['rgba(85,85,85,0.4)'] } }, }, { type: 'value', axisLine: { lineStyle: { color: 'rgba(85,85,85,0.4)' } } } ], series: [ { name: '直接访问', type: 'bar', label: { show: true, position: 'top', color:'#ffffff' }, barWidth : 20,//柱图宽度 itemStyle:{ normal:{ color:'#1dcbf3' } }, data: [4, 6, 61, 14, 93, 18, 16,45,21,73,21,48] } ]