columnTemplate1 = { 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' , textStyle: { color: '#fff', fontSize:9 }, } }, 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:30, containLabel: true }, xAxis: [{ type: 'category', axisTick:{ show:false }, axisLine:{ show:false }, axisLabel:{ color:'#fff', fontSize:9, margin:5, fontWeight:'bold' }, data: ['类别1', '类别2'], }], yAxis: [{ name:'单位:', nameTextStyle:{ color:'#fff', fontSize:9, padding:[0, 30, -10, 0] }, max: function(value) { if(value.max<5){ return 5 }else{ return value.max } }, type: 'value', axisLine:{ show:false }, axisLabel:{ color:'#fff', fontSize:9, margin:5 }, splitLine:{ show:false }, axisTick:{ show:false } }], series: [ { name: '系列1', type: 'bar', label:{ show:true, position:'top', fontSize:9, color:'#3DC3F0', fontWeight:'bold' }, barMaxWidth:10, itemStyle:{ color:'#3DC3F0' // color: { // type: 'linear', // x: 0, // y: 0, // x2: 0, // y2: 1, // colorStops: [{ // offset: 0, color: '#3DC3F0' // 0% 处的颜色 // }, { // offset: 1, color: '#CCF2FF' // 100% 处的颜色 // }] // } }, data: [60, 110] }, { name: '系列2', type: 'bar', label:{ show:true, position:'top', fontSize:9, color:'#3D8BF0', fontWeight:'bold' }, barMaxWidth:10, itemStyle:{ color:'#3D8BF0' // color: { // type: 'linear', // x: 0, // y: 0, // x2: 0, // y2: 1, // colorStops: [{ // offset: 0, color: '#3D8BF0' // 0% 处的颜色 // }, { // offset: 1, color: '#CCE2FF' // 100% 处的颜色 // }] // } }, data: [90, 130] } ] }; columnTemplate1Series=[ { name: '', type: 'bar', label:{ show:true, position:'top', fontSize:9, color:'#3DC3F0', fontWeight:'bold' }, barMaxWidth:10, itemStyle:{ color:'#3DC3F0' }, data: [] }, { name: '', type: 'bar', label:{ show:true, position:'top', fontSize:9, color:'#3D8BF0', fontWeight:'bold' }, barMaxWidth:10, itemStyle:{ color:'#3D8BF0' }, data: [] } ]