$(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'); }) var html = ''; for(var i = 0;i'; } $('#modalb0')[0].innerHTML = html; $('#modalb1')[0].innerHTML = html; $('#modalb2')[0].innerHTML = html; $('#mybody').click(function(){ $('#btn_cnt').hide(); $('#div6').hide(); STEP = 0; }) $('#btn_mode').mouseenter(function(){ $('#btn_mode').css('background','#1c9ab0'); $('#btn_mode').css('color','white'); }).mouseleave(function(){ $('#btn_mode').css('background','white'); $('#btn_mode').css('color','black'); }) // x轴begin $('#modalb0 div').mouseenter(function () { $(this).css('color','white'); $(this).css('background','#3098fe'); }) $('#modalb0 div').mouseleave(function () { $(this).css('background','white'); $(this).css('color','black'); }) $('#modalb0 div').click(function () { $('#modalb0').css('display','none'); XTITLE = $(this)[0].innerText.trim(); $('#fig_btn0')[0].innerHTML = XTITLE; }) // x轴end // y轴begin $('#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; }) // y轴end // z轴begin $('#modalb2 div').mouseenter(function () { $(this).css('color','white'); $(this).css('background','#3098fe'); }) $('#modalb2 div').mouseleave(function () { $(this).css('background','white'); $(this).css('color','black'); }) $('#modalb2 div').click(function () { $('#modalb2').css('display','none'); DPARAMS = $(this)[0].innerText.trim(); $('#fig_btn2')[0].innerHTML = DPARAMS; }) // z轴end $('#fig_btn0').click(function () { $('#modalb0').toggle(); $('#modalb1').hide(); $('#modalb2').hide(); }) $('#fig_btn1').click(function () { $('#modalb1').toggle(); $('#modalb0').hide(); $('#modalb2').hide(); }) $('#fig_btn2').click(function () { $('#modalb2').toggle(); $('#modalb1').hide(); $('#modalb0').hide(); }) $('#btn_mode').click(function(){ STEP += 1; if(STEP%2 == 1){ $('#div6').show(); }else{ $('#div6').hide(); } }) $('#btn_confirm').click(function(){ for(i = 0;i=6){ $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cwidth*0.33); } } loadCharts(); window.onresize = function(){ $(".warp").css("left",document.body.clientWidth-23); $(".warp").css("top",document.body.clientHeight-25); cheight = document.documentElement.clientHeight-2; cwidth = document.documentElement.clientWidth; for(var i = 1;i<=data.length;i++){ if(data.length==1){ $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cwidth); }else if(data.length==2){ $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cwidth*0.49); }else if(data.length==3){ var mgl = (cwidth-cwidth*0.49)/2; if(i==data.length){ $('#charts'+i).css("marginLeft",mgl); } $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cwidth*0.49); }else if(data.length==4){ $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cwidth*0.49); }else if(data.length==5){ var mgl = (cwidth-cwidth*0.33*2)/3; if(i==data.length||i==data.length-1){ $('#charts'+i).css("marginLeft",mgl); } $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cwidth*0.33); }else if(data.length>=6){ $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cwidth*0.33); } } if(data.length>=1) myChart1.resize(); if(data.length>=2) myChart2.resize(); if(data.length>=3) myChart3.resize(); if(data.length>=4) myChart4.resize(); if(data.length>=5) myChart5.resize(); if(data.length>=6) myChart6.resize(); } }) for(var i = 0;i=max){ max = parseInt(countarr[i][j]); } } f1.push(max/50); } for(var i = 0;i=2){ var option2={ animation:ani, toolbox: { show: ts,feature: {dataView: {readOnly: false}} }, title: { show:c_bNameT, text: text[1], //subtext: CARR[Y[1]-1], x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT), fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { var name = params.data.name; var value = params.data.value; if(name=='申请量'){ var value1 = []; for(var i = 0;i=3){ var option3={ animation:ani, toolbox: { show: ts,feature: {dataView: {readOnly: false}} }, title: { show:c_bNameT, text: text[2], //subtext: CARR[Y[2]-1], x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT), fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { var name = params.data.name; var value = params.data.value; if(name=='申请量'){ var value1 = []; for(var i = 0;i=4){ var option4={ animation:ani, toolbox: { show: ts,feature: {dataView: {readOnly: false}} }, title: { show:c_bNameT, text: text[3], //subtext: CARR[Y[3]-1], x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT), fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { var name = params.data.name; var value = params.data.value; if(name=='申请量'){ var value1 = []; for(var i = 0;i=5){ var option5={ animation:ani, toolbox: { show: ts,feature: {dataView: {readOnly: false}} }, title: { show:c_bNameT, text: text[4], //subtext: CARR[Y[4]-1], x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT), fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { var name = params.data.name; var value = params.data.value; if(name=='申请量'){ var value1 = []; for(var i = 0;i=6){ var option6={ animation:ani, toolbox: { show: ts,feature: {dataView: {readOnly: false}} }, title: { show:c_bNameT, text: text[5], //subtext: CARR[Y[5]-1], x:c_szXAlignT, y:c_szYAlignT, textStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT), fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, tooltip: { trigger: 'item', formatter: function (params) { var name = params.data.name; var value = params.data.value; if(name=='申请量'){ var value1 = []; for(var i = 0;i