text = text + '-申请量'; // c_szMarginRightP=100-Number(c_szMarginRightP.replace('%',''))+'%'; // c_szMarginBottomP=100-Number(c_szMarginBottomP.replace('%',''))+'%'; 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 ARRKEYR2 = []; for(var i = 0;i=ymax) MAXP = ymax; else MAXP = xmax; var maxNum = 0,minNum=100000000; var maxNumB = 0,minNumB=100000000; for(var i = 0;imaxNumB) maxNumB = sData[j][i][2]; } if(fmnummaxNum) maxNum=fmnum; } //alert(MAXP+' '+MINP+' '+cheight+' '+ARRKEYR2.length+' '+sData[0].length+' '+sData.length); var MYPER = (MAXP-MINP); var MYPERB = (MAXP-MINP); if (maxNum==minNum) MYPER=1; else MYPER=MYPER/(maxNum-minNum); if (maxNumB==minNumB) MYPERB=1; else MYPERB=MYPERB/(maxNumB-minNumB); //console.log(MAXNUM,maxNum,'ARRKEYR2'); function QueryBase64Image(w,h,idx) { var idx=parseInt(idx); $('#charts').css('width',w); $('#charts').css("height",h); var mycanvas = document.getElementsByTagName('canvas')[idx]; var context = mycanvas.getContext("2d"); var spanleft; var spantop; var str; var lineWidth; var initHeight; var lastSubStrIndex; var fontStyleStr; for (var i = 1; i < 11; i++) { var spantext = $('#div_tips' + i + ''); if(spantext.text()==''){ break; } fontStyleStr=spantext.css("font-style")+' '+spantext.css("font-weight")+' '+spantext.css("font-size")+' '+spantext.css("font-family"); context.font=fontStyleStr; context.fillStyle = spantext.css("background-color"); spanleft = parseInt(spantext.css("left")); spantop = parseInt(spantext.css("top")); spanwidth=parseInt(spantext.css("width")); spanheight=parseInt(spantext.css("height")); context.fillRect(spanleft,spantop-parseInt(spantext.css("font-size")),spanwidth+parseInt(spantext.css("font-size")),spanheight); context.fillStyle = spantext.css("color"); lineWidth=0; str=spantext.text(); initHeight=spantop;//绘制字体距离canvas顶部初始的高度 lastSubStrIndex= 0; //每次开始截取的字符串的索引 for(var j=0;jspanwidth){ context.fillText(str.substring(lastSubStrIndex,j),spanleft,initHeight);//绘制截取部分 initHeight+=parseInt(spantext.css("font-size"))*1.4;//20为字体的高度 lineWidth=0; lastSubStrIndex=j; } if(j==str.length-1){//绘制剩余部分 context.fillText(str.substring(lastSubStrIndex,j+1),spanleft,initHeight); } } } try{             var image=new Image(); image.src=$("#uploadimg")[0].src; var imgwidth=parseInt($("#uploadimg").css("width")) ; var imgheight=parseInt($("#uploadimg").css("height")); var imgleft=parseInt($("#uploadimg").css("left")); var imgtop=parseInt($("#uploadimg").css("top")); context.drawImage(image,imgleft,imgtop,imgwidth,imgheight);  }catch(error) {             var ret = mycanvas.toDataURL("image/png");         } var ret = mycanvas.toDataURL("image/png"); cwidth = document.documentElement.clientWidth; cheight = document.documentElement.clientHeight - 2; $('#charts').css("height", cheight); $('#charts').css("width", cwidth); showChart(); return ret; } function QueryText(){ TextP = ''; for(var i = 0;i'); if(TextP!='0,0,&&0,0,&&0,0,&&0,0,&&0,0,&&0,0,') return TextP; else return ''; } var ISWEB = 0; if (window.location.host=="" ){ ISWEB = 0; }else if(window.location.host.indexOf('www.patentics')!=-1){ ISWEB = 1; }else{ ISWEB = 2; } //"#2B7DE1", var COLORS = THEMECOLOR[Number(c_nTheme)]; $(function(){ YTITLE = CARR[Y]; $('#btn_sel').click(function(){ $('#btn_cnt').toggle(); }) $('#btn_sel').mouseenter(function(){ $(this).css('background','#1c9ab0'); $(this).css('color','white'); }).mouseleave(function(){ $(this).css('background','white'); $(this).css('color','black'); }) // y轴begin 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; Y = CARR.indexOf(YTITLE); var locationtitle = -1; locationtitle = text.lastIndexOf('-'); console.log(locationtitle) text = locationtitle != -1 ? text.substring(0, locationtitle+1) + YTITLE : text; concat(); showChart(); }) // y轴end $('#fig_btn1').click(function () { $('#modalb1').toggle(); }) var cheight = document.documentElement.clientHeight-2; $('#charts').css("height",cheight); window.onresize = function(){ $(".warp").css("left",document.body.clientWidth-23); $(".warp").css("top",document.body.clientHeight-25); var cheight = document.documentElement.clientHeight-2; var cwidth = document.documentElement.clientWidth; $('#charts').css("height",cheight); //location.onreload();// // myChart.resize(); // buildPieSeries(); showChart(); } showChart(); }) var dataLength = ARRVALUE.length; if(typeof TextP=='undefined'||TextP==''){ var MYTEXT = [[],[],[],[],[],[]]; }else{ var MYTEXT = TextP.split('&&'); for(var i = 0;i'+e[2][0]+'
'+e[2][1]+'
'+e[2][2]; //else // return ''; //console.log(e,'e'); } }, grid:{ x:c_szMarginLeftP, y:c_szMarginTopP, x2:c_szMarginRightP, y2:c_szMarginBottomP, }, legend:{ show:c_bNameL, orient:c_szLayoutL, x:c_szxalignL, y:c_szyalignL, padding:parseInt(c_nSizeT), textStyle:{ color:c_szColorL, fontSize:c_nSizeL, fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, }, icon : 'rect', data :(function(){ var res = []; for(var i = 0;i=fnummax){ fnummax = e.dataIndex; } if(e.name==ARRKEY3[dataII]){ fnum = e.value; }else{ fnum += e.value; } if(e.name==ARRKEY3[fnummax]){ if(fnum>=1) return parseInt(fnum); else return parseFloat(fnum).toFixed(1); } }, textStyle:{ color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, labelLine : { show : false } } }, radius : (function(){ resnum=0; for(var i = 0;i=j){ dataII = j; } } } } fnummax = 0; fmnum = 0; //console.log(dataII,'dataII'); // if(dataII<=e.dataIndex){ // dataII = e.dataIndex; // } }); }