yujingqushi.js 1.5 KB
var chartDom = document.getElementById('area');
	var myChart = echarts.init(chartDom);
	var option;
	option = {
		// width:'90%',
		// height:'90%',
		grid:{
			top:'5%',
			left:'5%',
			bottom:'15%',
		},
		tooltip: {
			trigger:'axis',
		  axisPointer: {
			type: 'shadow'
		  }
		},
		calcuabel:true,
	  xAxis: {
		  color:['#fff'],
		  splitLine:{
			show:false,
			lineStyle:{
			  color:['#5456CB'],
			  width:1,
			  type:'solid',
			},
		  },
		  axisLine:{
			  show:false,
			// lineStyle:{
			//   color:'#5456CB',
			// }
		  },
		  axisLabel:{
			textStyle:{
				color:'#fff',
				fontSize:14,
			}
		  },
		  axisTick: {
		  show: false
		  },
		type: 'category',
		boundaryGap: false,
		// data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
	  },
	  yAxis: {
		  color:['#fff'],
		  splitLine:{
			show:false,
			lineStyle:{
			  color:['#5456CB'],
			  width:1,
			  type:'solid',
			},
		  },
		  axisLine:{
			  show:false,
			// lineStyle:{
			//   color:'#5456CB',
			// }
		  },
		  axisLabel:{
			  show:false,
			// textStyle:{
			// 	color:'#fff',
			// 	fontSize:14,
			// }
		  },
		  axisTick: {
		  show: false
		  },
		type: 'value',
	  },
	  series: [
		{
			
			color:['#7EA0F3'],
			data: [820, 932, 901, 934, 1290, 1330, 1320],
			type: 'line',
		  // center: ["35%", "53%"], 
			areaStyle: {},
		},
		// markLine:{
		// 	data:[
		// 		{symbol:'none',x:'90%',yAxis:'max'},
		// 		{symbol:'circle',label:{position:'start',formatter:'Max'},
		// 		type:'max',name:''},
		// 	]
		// },
	  ]
	};
	
	option && myChart.setOption(option);