$(function(){ if(text[0] != undefined) { text[0] = text[0] + '-申请量' } window.onkeydown = function(e){ if(e.keyCode==32&&isFocus==0){ oneToSix(); } } $('#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'); }) // 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=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(); } }) //c++参数转换为js参数 var PIEMARGIN = 100; if(c_szMarginLeftP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginLeftP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginLeftP.replace('%',''))-30; } if(c_szMarginRightP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginRightP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginRightP.replace('%',''))-30; } if(c_szMarginTopP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginTopP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginTopP.replace('%',''))-30; } if(c_szMarginBottomP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginBottomP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginBottomP.replace('%',''))-30; } 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参数 var ISWEB = 0; if (window.location.host=="" ){ ISWEB = 0; }else if(window.location.host.indexOf('www.patentics')!=-1){ ISWEB = 1; }else{ ISWEB = 2; } var dataLength = data.length; if(typeof TextP=='undefined'||TextP==''){ var MYTEXT = [[],[],[],[],[],[]]; }else{ var MYTEXT = TextP.split('&&'); for(var i = 0;i=lenT) lenT = data[i][j].split(':')[0].length; } BARTLEFT.push(lenT); } //console.log(BARTLEFT,'BARTLEFT'); function loadCharts(){ myChart1 = echarts.init(document.getElementById('charts1'),c_nTheme); myChart2 = echarts.init(document.getElementById('charts2'),c_nTheme); myChart3 = echarts.init(document.getElementById('charts3'),c_nTheme); myChart4 = echarts.init(document.getElementById('charts4'),c_nTheme); myChart5 = echarts.init(document.getElementById('charts5'),c_nTheme); myChart6 = echarts.init(document.getElementById('charts6'),c_nTheme); if(TYPE[0]=='pie'){ var option1={ animation:ani, title : { show:c_bNameT, text: text[0], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[0]){ for(var i = 0;i=2){ if(TYPE[1]=='pie'){ var option2={ animation:ani, title : { show:c_bNameT, text: text[1], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[1]){ for(var i = 0;i=3){ if(TYPE[2]=='pie'){ var option3={ animation:ani, title : { show:c_bNameT, text: text[2], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[2]){ for(var i = 0;i=4){ if(TYPE[3]=='pie'){ var option4={ animation:ani, title : { show:c_bNameT, text: text[3], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[3]){ for(var i = 0;i=5){ if(TYPE[4]=='pie'){ var option5={ animation:ani, title : { show:c_bNameT, text: text[4], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[4]){ for(var i = 0;i=6){ if(TYPE[5]=='pie'){ var option6={ animation:ani, title : { show:c_bNameT, text: text[5], //subtext: CARR[Y[0]-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, } }, toolbox: { show: ts, feature: { // dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, legend: { show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, data:(function(){ var res = []; if(data[5]){ for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) myChart2.on('click',function(e){ if(ISWEB==1){ if(MD5ARR[1][e.dataIndex].trim()!=''){ window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+MD5ARR[1][e.dataIndex]); } } if(ISWEB==0){ var posnum = -1; for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) myChart3.on('click',function(e){ if(ISWEB==1){ if(MD5ARR[2][e.dataIndex].trim()!=''){ window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+MD5ARR[2][e.dataIndex]); } } if(ISWEB==0){ var posnum = -1; for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) myChart4.on('click',function(e){ if(ISWEB==1){ if(MD5ARR[3][e.dataIndex].trim()!=''){ window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+MD5ARR[3][e.dataIndex]); } } if(ISWEB==0){ var posnum = -1; for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) myChart5.on('click',function(e){ if(ISWEB==1){ if(MD5ARR[4][e.dataIndex].trim()!=''){ window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+MD5ARR[4][e.dataIndex]); } } if(ISWEB==0){ var posnum = -1; for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) myChart6.on('click',function(e){ if(ISWEB==1){ if(MD5ARR[5][e.dataIndex].trim()!=''){ window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+MD5ARR[5][e.dataIndex]); } } if(ISWEB==0){ var posnum = -1; for(var i = 0;i/g,"-"); mytempename = mytempename.replace(/\|/g,"-"); mytempename = mytempename.replace(/”/g,"-"); //mytempename = mytempename.replace(/,/g,"-"); mytempename = mytempename.replace(/、/g,"-"); mytempename = mytempename.replace(/\n/g,""); mytempename = mytempename.replace(/\;/g,"-"); mytempename = mytempename.replace(/\\/g,"-"); mytempename = mytempename.replace(/\s/g,"-"); mytempename = mytempename.replace(/----/g,"-"); mytempename = mytempename.replace(/---/g,"-"); mytempename = mytempename.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename+'/PP'+'.htm'; window.open(isweb2url); } }) }