jiangyuliang.js 1.3 KB
var chartDom = document.getElementById('Main');
	var myChart = echarts.init(chartDom);
	var option;
	option = {
	  title: {
	  },
	  grid: {
		x:40,
		y:40,
		bottom:40,
		x2:20,
		y2:90,
		// borderWidth:1
	  },
	  xAxis: {
		  // interval:5,
		  color:['#fff'],
		  splitLine:{
			show:true,
			lineStyle:{
			  color:['#5456CB'],
			  // width:0.4,
			  type:'solid',
			},
		  },
		  axisLine:{
			lineStyle:{
			  color:'#5456CB',
			}
		  },
		  axisLabel:{
			textStyle:{
				color:'#fff',
				fontSize:12,
			}
		  },
		  axisTick: {
		  show: false
		  },
		type: 'value',
		boundaryGap: [0, 0.2]
	  },
	  yAxis: {
		  name:'单位/mm',
		  nameTextStyle:{
			color:'#fff',
		  },
		  axisLine:{
			lineStyle:{
			  color:'#5456CB',
			}
		  },
		  axisLabel:{
			textStyle:{
				color:'#fff',
				fontSize:12,
			}
		  },
		  axisTick: {
		  show: false
		  },
		type: 'category',
		data: ['11/21', '11/22', '11/23', '11/24', '11/25', '11/25']
	  },
	  series: [
		{
			color:['#029ACF'],
			type: 'bar',
			barWidth: '15',
			data: [12000,10500,9800,8000,4500,],
			itemStyle:{
			  normal:{
				  label:{
					  show:true,
					  textStyle:{
						  color:'#fff',
						  fontSize:12,
					  }
					},
				},
			},
		},
	  ]
	};
	
	option && myChart.setOption(option);