柱状图

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            option = {
   //你的代码
   tooltip: {
						  trigger: 'axis',
						  axisPointer: { // 坐标轴指示器,坐标轴触发有效
							type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
						  },
						  confine:true
						},
						grid: {
						  left: '2%',
						  right: '4%',
						  bottom: '14%',
						  top:'16%',
						  containLabel: true
						},
						 legend: {
							data: ['计划投资额(万元)','实际投资额(万元)'],
							// right: ,
							bottom:2,
							textStyle: {
								color: "#333333"
							},
							itemWidth: 15,
							itemHeight: 10,
							itemGap: 35
					},
						xAxis: {
						  type: 'category',
						  data: ['1','2','3','4','5','6','7','8','9','10','11','12'],
						  axisLine: {
							  show:false,
							lineStyle: {
							  color: '#ECECEC'
							}
						  },
						   axisTick: {
						       show: false,
						    },
						  axisLabel: {
							// interval: 0,
							// rotate: 40,
							show:true,
							textStyle: {
							  fontFamily: 'Microsoft YaHei',
							  color:'#666666'
							}
						  },
						},
				
						yAxis: {
						  name:'单位:万元',
						  nameTextStyle:{
							  fontSize:10
						  },
						  type: 'value',
						  //max:'5000',
						  axisLine: {
							show: false,
							
							lineStyle: {
							  color: '#666666',						  
							}
						  },
						  splitLine: {
							show: true,
							lineStyle: {
							  color: '#ECECEC'
							}
						  },
						  axisLabel: {
							  textStyle: {
							    fontFamily: 'Microsoft YaHei',
				                fontSize:10,
							  }
						  }
						},
						series: [{
						  name: '计划投资额(万元)',
						  type: 'bar',
						  barWidth: '28%',
						  itemStyle: {
							normal: {
								color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
									offset: 0,
									color: '#7E7CEB'
								}, {
									offset: 1,
									color: '#79C7F3'
								}]),
								barBorderRadius: 12,
							},
						  },
						  data: [3000, 2000, 1500, 2500, 1800, 2800, 2600, 3500, 3200, 3000, 2500, 2000, 1800]
						},
					   
						{
						  name: '实际投资额(万元)',
						  type: 'bar',
						  barWidth: '28%',
						  itemStyle: {
							normal: {
								color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
									offset: 0,
									color: '#F98563'
								}, {
									offset: 1,
									color: '#FBAC69'
								}]),
							barBorderRadius: 11,
							}
						  },
						  data: [3200, 1000, 2500, 3000, 1000, 4000, 3800, 4200, 3800, 1800, 1900, 2500, 1000]
					}]
};