option = { backgroundColor: '#04243E', tooltip : { trigger: 'axis', axisPointer : { // 坐标轴指示器,坐标轴触发有效 type : 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, legend: { data: ['直接访问', '邮件营销','联盟广告','视频广告','搜索引擎'], textStyle: { color: "white", fontWeight:'normal' } }, grid: { top: '13%', left: '3%', right: '4%', bottom: '3%', containLabel: true }, yAxis: { type: 'value', axisLine : { show : false, lineStyle : { color : 'rgba(200,200,200,0.2)' } }, axisLabel : { color : 'white' }, }, xAxis: { type: 'category', data: ['周一','周二','周三','周四','周五','周六','周日'], axisLine : { show : true, lineStyle : { color : 'rgba(200,200,200,0.1)' } }, axisLabel : { color : 'white' } }, color : ['#3AA7F9','#F56C7C','#FD9A36','#EBE028','#31CE65','#20DACD','#D671F5','#F430E8','#8A31FB'], series: [ { name: '直接访问', type: 'bar', stack: '总量', label: { normal: { show: false, position: 'insideRight' } }, data: [320, 302, 301, 334, 390, 330, 320] }, { name: '邮件营销', type: 'bar', stack: '总量', label: { normal: { show: false, position: 'insideRight' } }, data: [120, 132, 101, 134, 90, 230, 210] }, { name: '联盟广告', type: 'bar', stack: '总量', label: { normal: { show: false, position: 'insideRight' } }, data: [220, 182, 191, 234, 290, 330, 310] }, { name: '视频广告', type: 'bar', stack: '总量', label: { normal: { show: false, position: 'insideRight' } }, data: [150, 212, 201, 154, 190, 330, 410] }, { name: '搜索引擎', type: 'bar', stack: '总量', label: { normal: { show: false, position: 'insideRight' } }, data: [820, 832, 901, 934, 1290, 1330, 1320] } ] };