columnTemplate2 = { title:{ text:"输入标题", textStyle:{ color:'#fff', fontStyle:'normal', fontWeight:'bold', fontFamily:'sans-serif',      fontSize:12 } }, textStyle:{ fontFamily: "Microsoft YaHei", fontSize: 9, fontStyle: "normal", fontWeight: "normal", color: '#fff' }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: { data: ['系列1', '系列2'], bottom:0, textStyle: { color: "#fff", fontSize:9 }, itemWidth: 10, itemHeight: 10, itemGap: 35 }, grid: { top:40, left:10, bottom:20, right:10, containLabel: true }, xAxis: [{ type: 'category', data: ['类别1', '类别2', ], axisLine: { show: true, lineStyle: { color: "#063374", width: 1, type: "solid" } }, axisTick: { show: false, }, axisLabel: { show: true, fontSize:9, margin:5, color: "#fff", }, }], yAxis: [{ name:'单位:', nameTextStyle:{ color:"#fff", fontSize:9, padding:[0, 30, -10, 0] }, type: 'value', axisLabel: { formatter: '{value} %' }, axisTick: { show: false, }, axisLine: { show: false, lineStyle: { color: "#fff", width: 1, type: "solid" }, }, axisLabel:{ fontSize:9, margin:5 }, splitLine: { lineStyle: { color: "#063374", } } }], series: [{ name: '系列1', type: 'bar', data: [20, 50], barWidth: 10, //柱子宽度 barGap: 1, //柱子之间间距 itemStyle: { color:'#008cff', // normal: { // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ // offset: 0, // color: '#008cff' // }, { // offset: 1, // color: '#005193' // }]), // opacity: 1, // } } }, { name: '系列2', type: 'bar', data: [50, 70], barWidth: 10, barGap: 1, itemStyle: { color:'#00da9c', // normal: { // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ // offset: 0, // color: '#00da9c' // }, { // offset: 1, // color: '#007a55' // }]), // opacity: 1, // } } },] }; columnTemplate2Series=[{ name: '', type: 'bar', data: [], barWidth: 10, //柱子宽度 barGap: 1, //柱子之间间距 itemStyle: { color:'#008cff', // normal: { // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ // offset: 0, // color: '#008cff' // }, { // offset: 1, // color: '#005193' // }]), // opacity: 1, // } } }, { name: '', type: 'bar', data: [], barWidth: 10, barGap: 1, itemStyle: { color:'#00da9c' // normal: { // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ // offset: 0, // color: '#00da9c' // }, { // offset: 1, // color: '#007a55' // }]), // opacity: 1, // } } }]