//创建电池组统计分析折线图 var mycapacityChart; function CreateLineEchart(ele,lname,xdata,sdata){ //console.info(xdata); mycapacityChart=echarts.init(ele); mycapacityChart.clear(); var option={ tooltip:{ trigger:'axis' }, title : { //text: tname, x: "center", //标题水平方向位置 textStyle: { fontSize:13 } }, toolbox:{ show : true }, xAxis:{ data:xdata }, grid: { top:'10%', left: '1%', right: '4%', bottom: '2%', containLabel: true }, yAxis:[{ name:"y(AH)", type:'value', axisLabel:{ formatter:function(value){ //解决原点处带符号问题 if(value==0) { return value; }else{ return value ; } } } }], series:function(){ var serie=[]; //console.info(sdata); for( var i=0;i