$(function(){ if(data.length==1){ $('#btn_sel').hide(); } MODALNUM = CARR.length - (data[0][0].split(':').length-2); if(MODALNUM>=1){ for(var i = 0;i=2){ for(var i = 0;i=3){ for(var i = 0;i=4){ for(var i = 0;i=5){ for(var i = 0;i' + '
' +(i+1)+ '
'; }else{ html1 += '
' +(i+1)+ '
'; } } $('#btn_cnt')[0].innerHTML = html1; $('#btn_cnt div').click(function(){ var ss = this.innerHTML; if(ss=='全部') ss = 0; INPUTNUM = parseInt(ss); $('#btn_cnt').hide(); $('#btn_sel')[0].innerHTML = this.innerHTML; }).mouseenter(function(){ $(this).css('color','white'); $(this).css('background','#3098fe'); }).mouseleave(function(){ $(this).css('background','white'); $(this).css('color','black'); }) // y轴begin concat(); var html = ''; for(var i = 0;i'; } $('#modalb1')[0].innerHTML = html; $('#mybody').click(function(){ $('#btn_cnt').hide(); $('#modalb1').hide(); STEP = 0; }) $('#modalb1 div').mouseenter(function () { $(this).css('color','white'); $(this).css('background','#3098fe'); }) $('#modalb1 div').mouseleave(function () { $(this).css('background','white'); $(this).css('color','black'); }) $('#modalb1 div').click(function () { $('#modalb1').css('display','none'); YTITLE = $(this)[0].innerText.trim(); $('#fig_btn1')[0].innerHTML = YTITLE; for(i = 0;i=tempmax) tempmax = Number(data[i][j].split(':')[Y[i]+1]); } minarr.push(tempmin); maxarr.push(tempmax); } myChart1 = echarts.init(document.getElementById('charts1'),c_nTheme); var option1 = { animation:ani, title: { text: text[0], //subtext:CARR[Y[0]-1], show:c_bNameT, x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)+4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { if(params.value.toString()!='NaN'&¶ms.value!=0){ var haveEP = 0; var haveDE = 0; for(var i = 0;i'+'EP : '+VALUEARR[0][x1]+'
'+'DE : '+VALUEARR[0][x2]; }else{ return params.seriesName + '
' + params.name + ' : ' + params.value; } }else{ if(params.name=='DE'){ params.name = 'EP'; } return params.seriesName + '
' + params.name + ' : ' + params.value; } }else{ return params.seriesName + '
' + params.name + ' : ' + params.value; } } } }, toolbox: { show: true, left: 'right', top: 'top', feature: { dataView: {readOnly: false}, restore: {}, saveAsImage: {} } }, visualMap: { min: minarr[0], max: maxarr[0], text:['High','Low'], realtime: false, calculable: true, inRange: { //color: ['lightskyblue','yellow', 'orangered'] color:MAPCOLOR }, show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, }, series: [ { name: CARR[Y[0]-1], type: 'map', mapType: 'world', //nameMap:nameMap, roam: true, zoom:1.2, itemStyle:{ normal:{ opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP }, emphasis:{label:{show:true}} }, label:{ normal:{ formatter:function(e){ if(e.value!=0&&e.value.toString()!='NaN'){ var haveEP = 0; var haveDE = 0; for(var i = 0;i