option ={ backgroundColor: '#FFF', grid: { top: '10%', bottom: '10%', left: '10%', right: '4%', }, tooltip: { trigger: 'item', label: { show: true, }, }, xAxis: { boundaryGap: true, //默认,坐标轴留白策略 axisLine: { show: false, }, splitLine: { show: false, }, axisTick: { show: false, alignWithLabel: true, }, data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'], }, yAxis: { axisLine: { show: false, }, splitLine: { show: true, lineStyle: { type: 'dashed', color: 'rgba(33,148,246,0.2)', }, }, axisTick: { show: false, }, }, series: [ { type: 'bar', itemStyle: { color: 'rgb(33,148,246)', borderWidth: 1, borderColor: '#FFF', barBorderRadius: [8, 8, 0, 0], }, barWidth: 25, label: { show: false, distance: 1, }, data: [2000, 1200, 2000, 3400, 1000, 5000, 6000], }, ], }