/* 2020-9-24 14:48:24 | 版权所有 军懋国兴 */ var thisWidget,myChart1;function initWidgetView(e){(thisWidget=e).config&&thisWidget.config.style&&$("body").addClass(thisWidget.config.style),myChart1=echarts.init(document.getElementById("echartsView1"),"dark"),setEchartsData(thisWidget.data),setInterval(function(){updateFlyOk(thisWidget.data)},800)}function updateFlyOk(e){for(var t=e.thislen||0,a=[],r=0;r"+e[1].seriesName+"  米
",0!=a&&(t+=e[0].seriesName+"  米
",t+="距离地面  米"),t}},xAxis:[{name:"行程",type:"category",boundaryGap:!1,axisLine:{show:!1},axisLabel:{show:!1},data:n.arrLength}],yAxis:[{type:"value",axisLabel:{rotate:60,formatter:"{value} 米"}}],series:[{name:"地面海拔",type:"line",smooth:!0,symbol:"none",sampling:"average",itemStyle:{normal:{color:"rgb(255, 70, 131)"}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgb(255, 158, 68)"},{offset:1,color:"rgb(255, 70, 131)"}])}},data:n.arrHbgd},{name:"漫游海拔",type:"line",smooth:!1,symbol:"none",data:n.arrFxgd},{name:"已漫游",type:"line",areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgb(255, 255, 0)"},{offset:1,color:"rgb(255, 255, 131)"}])}},data:[]}]},myChart1.setOption(e))}