option = { backgroundColor: '', title: { show: true, text: "合作品牌增长趋势图 -柱状图", textStyle: { color: '#277ace', fontSize: 24 } }, grid: { left: '3%', right: '4%', bottom: '10%', containLabel: true }, tooltip: { show: "true", trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, yAxis: { type: 'value', axisTick: { show: false }, axisLine: { show: false, lineStyle: { color: '#fffff', } }, splitLine: { show: true, lineStyle: { color: '#aaa', } }, }, xAxis: [{ type: 'category', axisTick: { show: false }, axisLine: { show: true, lineStyle: { color: '#fffff', } }, data: ['2018-09','2018-10','2018-11','2018-12','2019-01','2019-02','2019-03','2019-04','2019-05','2019-06','2019-07','2019-08','2019-09','2019-10','2019-11','2019-12','2020-01','2020-02','2020-03'] }, { type: 'category', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: false }, splitArea: { show: false }, splitLine: { show: false }, data: ['2018-09','2018-10','2018-11','2018-12','2019-01','2019-02','2019-03','2019-04','2019-05','2019-06','2019-07','2019-08','2019-09','2019-10','2019-11','2019-12','2020-01','2020-02','2020-03'] }, ], series: [{ name: '总合作品牌数', type: 'bar', xAxisIndex: 1, itemStyle: { normal: { show: true, color: '#277ace', barBorderRadius: 50, borderWidth: 0, borderColor: '#333', } }, barWidth: '30%', data: ['10','15','20','25','35','47','61','71','92','97','99','113','123','139','164','174','179','180','183'] }, { name: '新增合作品牌', type: 'bar', itemStyle: { normal: { show: true, color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#00FFE6' }, { offset: 1, color: '#007CC6' }]), barBorderRadius: 50, borderWidth: 0, borderColor: '#333', } }, label: { normal: { show: true, position: 'top', textStyle: { color: '#fffff' } } }, barWidth: '30%', data: ['0','5','5','10','12','14','10','21','5','2','14','10','16','25','10','5','1','3','18'] } ] };