//c++参数转换为js参数 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参数 function mysort(x,y){ return x[1] - y[1]; } function fsort(x,y){ return x[0]-y[0]; } if(ARRKEY.length==1){ havechild = 1; for(var i = 0;i'); if(TextP!='0,0,&&0,0,&&0,0,&&0,0,&&0,0,&&0,0,') return TextP; else return ''; } function hslToRgb(h, s, l){ var r, g, b; if(s == 0){ r = g = b = l; // achromatic }else{ var hue2rgb = function hue2rgb(p, q, t){ if(t < 0) t += 1; if(t > 1) t -= 1; if(t < 1/6) return p + (q - p) * 6 * t; if(t < 1/2) return q; if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; return p; } var q = l < 0.5 ? l * (1 + s) : l + s - l * s; var p = 2 * l - q; r = hue2rgb(p, q, h + 1/3); g = hue2rgb(p, q, h); b = hue2rgb(p, q, h - 1/3); } return 'rgb('+Math.round(r * 255)+','+Math.round(g * 255)+','+Math.round(b * 255)+')'; } var datemax = []; for(var i = 0;i=nmax){ // nmax = data[i][j][1]; // n = j; // } // } datemax[i].push(i); datemax[i].push(ARRKEY[i][0]); } datemax.sort(mysort); var YEARARR = []; for(var i = 0;i=7){ wid = cwidth*0.24; hei = cwidth*0.24; } var myChart1,myChart2,myChart3,myChart4,myChart5,myChart6,myChart7,myChart8; function QueryBase64Image(w,h,idx) { ISQUERY = 1; var idx=parseInt(idx); $('#container'+(idx+1)).html('
'); wid=w; hei=h; $('#charts'+(idx+1)).css('width',w); $('#charts'+(idx+1)).css("height",h); if (w<0) { w=-w; linewidth = 2; fs = 20; subfs = 16; bigsize = 20; normalsize = 10; } ani=false; ts = false; showChart(); 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"); ani=true; ts = true; if(idx==data.length-1){ cheight = document.documentElement.clientHeight-2; cwidth = document.documentElement.clientWidth; margin = (cheight-cwidth/2)/3; for(var i = 1;i<=data.length;i++){ if(data.length==1){ wid=cwidth; hei = cheight; wid=cwidth; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cwidth); }else if(data.length==2){ if(cheight-cwidth/2<0){ margin = -1*(cheight-cwidth/2)/2; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cheight); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/2; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==3||data.length==4){ if(cheight-cwidth<0){ margin = -1*(cheight-cwidth)/3; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth)/3; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==5||data.length==6){ if(cheight/2-cwidth/3<0){ margin = (cwidth*0.94-cheight*3/2)/5; wid=cheight*0.5; hei = cheight*0.5; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/3; wid=cwidth*0.31; hei = cwidth*0.31; $('#charts'+i).css("height",cwidth*0.31); $('#charts'+i).css("width",cwidth*0.31); $('#charts'+i).css("marginTop",margin); } }else if(data.length>=7){ if(cheight-cwidth/2<0){ margin = 0; }else{ margin = (cheight-cwidth/2)/3; } wid=cwidth*0.24; hei = cwidth*0.24; $('#charts'+i).css("height",cwidth*0.24); $('#charts'+i).css("width",cwidth*0.24); $('#charts'+i).css("marginTop",margin); } } myChart1.resize(); myChart2.resize(); myChart3.resize(); myChart4.resize(); myChart5.resize(); myChart6.resize(); myChart7.resize(); myChart8.resize(); myChart1.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[0], stroke:'grey', lineWidth:1 } } ]}); myChart2.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[1], stroke:'grey', lineWidth:1 } } ]}); myChart3.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[2], stroke:'grey', lineWidth:1 } } ]}); myChart4.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[3], stroke:'grey', lineWidth:1 } } ]}); myChart5.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[4], stroke:'grey', lineWidth:1 } } ]}); myChart6.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[5], stroke:'grey', lineWidth:1 } } ]}); myChart7.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[6], stroke:'grey', lineWidth:1 } } ]}); myChart8.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[7], stroke:'grey', lineWidth:1 } } ]}); } ISQUERY = 0; return ret; } $(function(){ $('#chartsTitle')[0].innerHTML = title; $('#chartsTitle1')[0].innerHTML = subtitle; cwidth = document.documentElement.clientWidth; cheight = document.documentElement.clientHeight-2; if(havechild==1){ $('#fchart').css('width',cwidth/3); $('#fchart').css('height',((cheight-120)/3)+122); } margin = (cheight-cwidth/2)/3; for(var i = 1;i<=data.length;i++){ if(data.length==1){ wid=cwidth; hei = cheight; wid=cwidth; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cwidth); }else if(data.length==2){ if(cheight-cwidth/2<0){ margin = -1*(cheight-cwidth/2)/2; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cheight); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/2; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==3||data.length==4){ if(cheight-cwidth<0){ margin = -1*(cheight-cwidth)/3; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth)/3; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==5||data.length==6){ if(cheight/2-cwidth/3<0){ margin = (cwidth*0.94-cheight*3/2)/5; wid=cheight*0.5; hei = cheight*0.5; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/3; wid=cwidth*0.31; hei = cwidth*0.31; $('#charts'+i).css("height",cwidth*0.31); $('#charts'+i).css("width",cwidth*0.31); $('#charts'+i).css("marginTop",margin); } }else if(data.length>=7){ if(cheight-cwidth/2<0){ margin = 0; }else{ margin = (cheight-cwidth/2)/3; } wid=cwidth*0.24; hei = cwidth*0.24; $('#charts'+i).css("height",cwidth*0.24); $('#charts'+i).css("width",cwidth*0.24); $('#charts'+i).css("marginTop",margin); } } 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; margin = (cheight-cwidth/2)/3; for(var i = 1;i<=data.length;i++){ if(data.length==1){ wid=cwidth; hei = cheight; wid=cwidth; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cwidth); }else if(data.length==2){ if(cheight-cwidth/2<0){ margin = -1*(cheight-cwidth/2)/2; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight); $('#charts'+i).css("width",cheight); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/2; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==3||data.length==4){ if(cheight-cwidth<0){ margin = -1*(cheight-cwidth)/3; wid=cheight; hei = cheight; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth)/3; wid=cwidth*0.47; hei = cwidth*0.47; $('#charts'+i).css("height",cwidth*0.47); $('#charts'+i).css("width",cwidth*0.47); $('#charts'+i).css("marginTop",margin); } }else if(data.length==5||data.length==6){ if(cheight/2-cwidth/3<0){ margin = (cwidth*0.94-cheight*3/2)/5; wid=cheight*0.5; hei = cheight*0.5; $('#charts'+i).css("height",cheight*0.5); $('#charts'+i).css("width",cheight*0.5); $('#charts'+i).css("marginLeft",margin); }else{ margin = (cheight-cwidth/2)/3; wid=cwidth*0.31; hei = cwidth*0.31; $('#charts'+i).css("height",cwidth*0.31); $('#charts'+i).css("width",cwidth*0.31); $('#charts'+i).css("marginTop",margin); } }else if(data.length>=7){ if(cheight-cwidth/2<0){ margin = 0; }else{ margin = (cheight-cwidth/2)/3; } wid=cwidth*0.24; hei = cwidth*0.24; $('#charts'+i).css("height",cwidth*0.24); $('#charts'+i).css("width",cwidth*0.24); $('#charts'+i).css("marginTop",margin); } } if(havechild==1){ $('#fchart').css('width',cwidth/3); $('#fchart').css('height',((cheight-120)/3)+122); $('#fchart').css('right','6.5%'); chartf.resize(); } myChart1.resize(); myChart2.resize(); myChart3.resize(); myChart4.resize(); myChart5.resize(); myChart6.resize(); myChart7.resize(); myChart8.resize(); myChart1.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[0], stroke:'grey', lineWidth:1 } } ]}); myChart2.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[1], stroke:'grey', lineWidth:1 } } ]}); myChart3.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[2], stroke:'grey', lineWidth:1 } } ]}); myChart4.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[3], stroke:'grey', lineWidth:1 } } ]}); myChart5.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[4], stroke:'grey', lineWidth:1 } } ]}); myChart6.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[5], stroke:'grey', lineWidth:1 } } ]}); myChart7.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[6], stroke:'grey', lineWidth:1 } } ]}); myChart8.setOption({ graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[7], stroke:'grey', lineWidth:1 } } ]}); } showChart(); }) function showChart() { 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); myChart7 = echarts.init(document.getElementById('charts7'),c_nTheme); myChart8 = echarts.init(document.getElementById('charts8'),c_nTheme); var option1 = { animation:ani, //color:['red','blue','yellow'], title: { text: text[0], subtext: subtext[0], 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, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[0], stroke:'grey', lineWidth:1 } } ], toolbox: { show: ts, feature: { dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, tooltip: { formatter: function (params) { return ARRKEY[0][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[0]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[0], max: xmax[0], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', // axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[0], max: ymax[0], //name:yname[0], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'a', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[0][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[0] } ] }; var option2 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[1], stroke:'grey', lineWidth:1 } } ], title: { text: text[1], subtext: subtext[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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[1][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[1]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[1], max: xmax[1], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[1], max: ymax[1], //name:yname[1], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'b', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[1][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[1] } ] }; var option3 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[2], stroke:'grey', lineWidth:1 }, subtextStyle:{ color:'black' } } ], title: { text: text[2], subtext: subtext[2], 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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[2][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[2]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[2], max: xmax[2], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[2], max: ymax[2], //name:yname[2], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'c', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[2][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[2] } ] }; var option4 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], title: { text: text[3], subtext: subtext[3], 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, }, subtextStyle:{ color:c_szColorT, fontSize:Number(c_nSizeT)-4, fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[3], stroke:'grey', lineWidth:1 } } ], toolbox: { show: ts, feature: { dataZoom: {}, dataView: {readOnly: false}, saveAsImage:{} } }, tooltip: { formatter: function (params) { return ARRKEY[3][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[3]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[3], max: xmax[3], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[3], max: ymax[3], //name:yname[3], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'd', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[3][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[3] } ] }; var option5 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[4], stroke:'grey', lineWidth:1 } } ], title: { text: text[4], subtext: subtext[4], 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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[4][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[4]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[4], max: xmax[4], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[4], max: ymax[4], //name:yname[4], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'e', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[4][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[4] } ] }; var option6 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[5], stroke:'grey', lineWidth:1 } } ], title: { text: text[5], subtext: subtext[5], 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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[5][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[5]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[5], max: xmax[5], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[5], max: ymax[5], //name:yname[5], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'f', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[5][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[5] } ] }; var option7 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[6], stroke:'grey', lineWidth:1 } } ], title: { text: text[6], subtext: subtext[6], 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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[6][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[6]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[6], max: xmax[6], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[6], max: ymax[6], //name:yname[6], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'g', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[6][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[6] } ] }; var option8 = { animation:ani, //color:['red','blue','yellow'], grid: [ { x:'14%', width:'76%' } ], graphic:[{ type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[7], stroke:'grey', lineWidth:1 } } ], title: { text: text[7], subtext: subtext[7], 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, }, 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:{} } }, tooltip: { formatter: function (params) { return ARRKEY[7][params.dataIndex] + '
' +xname+' : ' + parseInt(params.data[0])+'
'+yname[7]+' : ' + parseInt(params.data[1])+'
'+'竞争率 : '+ (parseInt(params.data[0])/parseInt(params.data[1])).toFixed(2); } }, xAxis: { min: xmin[7], max: xmax[7], // name:xname, // nameLocation:'middle', // nameGap:20, type: 'value', axisLine: {onZero: false}, show:c_bNameX, name:c_XAxisName, nameLocation:c_szLocationX, nameTextStyle:{ color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLabel:{ interval:0, rotate:c_szXRotate, color:c_szColorX, fontSize:c_nSizeX, fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthX, color: c_szLineColorX } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthX, type:c_szSplitLineTypeX } }, }, yAxis: { min: ymin[7], max: ymax[7], //name:yname[7], type: 'value', //axisLine: {onZero: false} show:c_bNameY, name:c_YAxisName, nameLocation:c_szLocationY, nameTextStyle:{ color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLabel:{ interval:0, rotate:c_szYRotate, color:c_szColorY, fontSize:c_nSizeY, fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, }, axisLine:{ onZero: false, show:true, lineStyle:{ width:c_szLineWidthY, color: c_szLineColorY } }, splitLine:{ lineStyle:{ width:c_szSplitLineWidthY, type:c_szSplitLineTypeY } }, }, series: [ { id: 'h', name:'COUNT', type: 'line', label:{ normal:{ show:true, formatter:function(e){ return ARRKEY[7][e.dataIndex]; }, color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, 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 } }, smooth: true, symbol:'star', symbolSize: symbolSize, data: data[7] } ] }; myChart1.setOption(option1); myChart2.setOption(option2); myChart3.setOption(option3); myChart4.setOption(option4); myChart5.setOption(option5); myChart6.setOption(option6); myChart7.setOption(option7); myChart8.setOption(option8); myChart1.on('click',function(e){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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); } }) myChart7.on('click',function(e){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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); } }) myChart8.on('click',function(e){ // console.log(e.value[2],'123'); var z = e.value[2].trim(); if(z!=''){ if(ISWEB==1){ var n = z.indexOf('enc='); window.open('http://www.patentics.cn/showpatent_phone.htm?sq='+z.substring(0,n)+'sencstring='+z.substring(n+4)); } } if(ISWEB==2){ var mytempename = e.name //mytempename = mytempename.replace(/\s/g,''); mytempename = mytempename.replace(/\//g,"-"); mytempename = mytempename.replace(/:/g,"-"); mytempename = mytempename.replace(/\*/g,"-"); mytempename = mytempename.replace(/"/g,"-"); mytempename = mytempename.replace(//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); } }) if(havechild==1&&ISQUERY==0){ chartf = echarts.init(document.getElementById('fchart'),c_nTheme); var optionF={animation:ani, //color:['red','blue','yellow'], toolbox: {show: false,feature: {dataZoom: {},dataView: {readOnly: false},saveAsImage:{}}}, title : { text: '', subtext: '', x:'center' ,textStyle:{fontSize:fs}}, tooltip : { trigger: 'axis'}, // itemStyle:{ // normal:{ // label:{ // color:'black' // } // } // }, xAxis:[{ type:'category',nameTextStyle:{fontSize:fs}, data:(function(){ var res = []; for(var i = 0;i