$(function(){ $('#input_curve').change(function(){ if(this.checked==true){ ISCURVE = 'spline'; loadCharts(); }else{ ISCURVE = 'line'; loadCharts(); } }) if(data.length==1){ $('#btn_sel').hide(); $('#input_color').hide(); $('#div_color').hide(); } $('#input_color').change(function(){ if(this.checked==true){ for(var i = 0;i=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){ MARGINLEFT = MARGINLEFT*0.33; MARGINRIGHT = MARGINRIGHT*0.33; MARGINTOP = MARGINTOP*0.5; MARGINBOTTOM = MARGINBOTTOM*0.5; $('#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); } } //loadCharts(); } }) //c++参数转换为js参数 //c++参数转换为js参数 var MARGINLEFT = document.documentElement.clientWidth*Number(c_szMarginLeftP.replace('%',''))*0.01; var MARGINRIGHT = document.documentElement.clientWidth*Number(c_szMarginRightP.replace('%',''))*0.01; var MARGINTOP = document.documentElement.clientHeight*Number(c_szMarginTopP.replace('%',''))*0.01; var MARGINBOTTOM = document.documentElement.clientHeight*Number(c_szMarginBottomP.replace('%',''))*0.01; if(c_bNameT=='0'){ c_bNameT = false; }else{ c_bNameT = true; } if(c_bNameL=='0'){ c_bNameL = false; }else{ c_bNameL = true; } if(c_bNameX=='0'){ c_bNameX = false; }else{ c_bNameX = true; } if(c_bNameY=='0'){ c_bNameY = false; }else{ c_bNameY = true; } //c++参数转换为js参数 //c++参数转换为js参数 //text:null(title) //enabled:true(legend) //xaxis:null(x轴) //yaxis:null(y轴) if(c_bNameT=='0'){ c_bNameT = null; }else{ c_bNameT = text[0]; } if(c_szLocationX=='start') c_szLocationX = 'low'; else if(c_szLocationX=='center') c_szLocationX = 'middle'; else if(c_szLocationX=='end') c_szLocationX = 'high'; if(c_szLocationY=='start') c_szLocationY = 'low'; else if(c_szLocationY=='center') c_szLocationY = 'middle'; else if(c_szLocationY=='end') c_szLocationY = 'high'; //c++参数转换为js参数 var COLORS = THEMECOLOR[Number(c_nTheme)]; var ARRKEY; var ARRVALUE1,ARRVALUE2,ARRVALUE3; var MD5ARR = []; var ISWEB = 0; if (window.location.host=="" ){ ISWEB = 0; }else if(window.location.host.indexOf('www.patentics')!=-1){ ISWEB = 1; }else{ ISWEB = 2; } var CHANGECOLORO1 = ['red','blue','purple','green','cyan','deeppink']; var CHANGECOLOR1 = ['red','blue','purple','green','cyan','deeppink']; for(var i = 0;i8) LEGENDMODE = false; ARRKEY.push([]); ARRVALUE1.push([]); ARRVALUE2.push([]); ARRVALUE3.push([]); for(var j = 0;j