//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]; } var ISWEB = 0; if (window.location.host=="" ){ ISWEB = 0; }else if(window.location.host.indexOf('www.patentics')!=-1){ ISWEB = 1; }else{ ISWEB = 2; } 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 MYSTR1 = '', MYSTR2 = '', MYSTR3 = '', MYSTR4 = '', MYSTR5 = '', MYSTR6 = '', MYSTR7 = '', MYSTR8 = '', option1,option2,option3,option4,option5,option6,option7,option8; 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) { 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 } } ]}); } return ret; } $(function(){ $('#chartsTitle')[0].innerHTML = title; $('#chartsTitle1')[0].innerHTML = subtitle; cwidth = document.documentElement.clientWidth; cheight = document.documentElement.clientHeight-2; 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); } } 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(); }) var COLORS = ['red','red','red','red']; if(c_nTheme!=0){ COLORS = []; for(var i = 0;i<4;i++){ COLORS.push(THEMECOLOR[Number(c_nTheme)][0]); } } var dataLength = ARRKEY.length; if(typeof TextP=='undefined'||TextP==''){ var MYTEXT = [[],[],[],[],[],[]]; }else{ var MYTEXT = TextP.split('&&'); for(var i = 0;i' +xname+' : ' + parseInt(data[0][index][0])+'
'+yname[0]+' : ' + parseInt(data[0][index][1])+'
'+'竞争率 : '+ parseFloat(data[0][index][0]/data[0][index][1]).toFixed(2); } }; option1.xAxis = { min: xmin[0], max: xmax[0], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option1.yAxis = { min: ymin[0], max: ymax[0], //name:yname[0], type: 'value', 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 } }, }; option1.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[0], stroke:'grey', lineWidth:1 } }; mdata1.counties.forEach(function (country) { var mdata1 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata1.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option1.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata1, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: COLORS[0], width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { // borderWidth: 1, color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP // borderColor: 'white' } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart1.setOption(option1); myChart1.on('click',function(e){ var z = e.value[5].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(data.length>=2){ option2 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR2 = ''; MYSTR2 += '{"counties":["'+ text[1] + '"],"timeline":['; for(var i = 0;i < ARRKEY[1].length;i++){ if(i!=ARRKEY[1].length-1) MYSTR2 += '"'+ARRKEY[1][i]+'",'; else MYSTR2 += '"'+ARRKEY[1][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[1][index][0])+'
'+yname[1]+' : ' + parseInt(data[1][index][1])+'
'+'竞争率 : '+ parseFloat(data[1][index][0]/data[1][index][1]).toFixed(2); } }; option2.xAxis = { min: xmin[1], max: xmax[1], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option2.yAxis = { min: ymin[1], max: ymax[1], //name:yname[1], type: 'value', 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 } }, }; option2.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[1], stroke:'grey', lineWidth:1 } }; mdata2.counties.forEach(function (country) { var mdata2 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata2.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option2.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata2, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart2.setOption(option2); myChart2.on('click',function(e){ var z = e.value[5].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(data.length>=3){ option3 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR3 = ''; MYSTR3 += '{"counties":["'+ text[2] + '"],"timeline":['; for(var i = 0;i < ARRKEY[2].length;i++){ if(i!=ARRKEY[2].length-1) MYSTR3 += '"'+ARRKEY[2][i]+'",'; else MYSTR3 += '"'+ARRKEY[2][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[2][index][0])+'
'+yname[2]+' : ' + parseInt(data[2][index][1])+'
'+'竞争率 : '+ parseFloat(data[2][index][0]/data[2][index][1]).toFixed(2); } }; option3.xAxis = { min: xmin[2], max: xmax[2], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option3.yAxis = { min: ymin[2], max: ymax[2], //name:yname[2], type: 'value', 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 } }, }; option3.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[2], stroke:'grey', lineWidth:1 } }; mdata3.counties.forEach(function (country) { var mdata3 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata3.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option3.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata3, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart3.setOption(option3); myChart3.on('click',function(e){ var z = e.value[5].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(data.length>=4){ option4 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR4 = ''; MYSTR4 += '{"counties":["'+ text[3] + '"],"timeline":['; for(var i = 0;i < ARRKEY[3].length;i++){ if(i!=ARRKEY[3].length-1) MYSTR4 += '"'+ARRKEY[3][i]+'",'; else MYSTR4 += '"'+ARRKEY[3][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[3][index][0])+'
'+yname[3]+' : ' + parseInt(data[3][index][1])+'
'+'竞争率 : '+ parseFloat(data[3][index][0]/data[3][index][1]).toFixed(2); } }; option4.xAxis = { min: xmin[3], max: xmax[3], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option4.yAxis = { min: ymin[3], max: ymax[3], //name:yname[3], type: 'value', 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 } }, }; option4.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[3], stroke:'grey', lineWidth:1 } }; mdata4.counties.forEach(function (country) { var mdata4 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata4.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option4.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata4, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart4.setOption(option4); myChart4.on('click',function(e){ var z = e.value[5].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(data.length>=5){ option5 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR5 = ''; MYSTR5 += '{"counties":["'+ text[4] + '"],"timeline":['; for(var i = 0;i < ARRKEY[4].length;i++){ if(i!=ARRKEY[4].length-1) MYSTR5 += '"'+ARRKEY[4][i]+'",'; else MYSTR5 += '"'+ARRKEY[4][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[4][index][0])+'
'+yname[4]+' : ' + parseInt(data[4][index][1])+'
'+'竞争率 : '+ parseFloat(data[4][index][0]/data[4][index][1]).toFixed(2); } }; option5.xAxis = { min: xmin[4], max: xmax[4], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option5.yAxis = { min: ymin[4], max: ymax[4], //name:yname[4], type: 'value', 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 } }, }; option5.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[4], stroke:'grey', lineWidth:1 } }; mdata5.counties.forEach(function (country) { var mdata5 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata5.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option5.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata5, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart5.setOption(option5); myChart5.on('click',function(e){ var z = e.value[5].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(data.length>=6){ option6 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR6 = ''; MYSTR6 += '{"counties":["'+ text[5] + '"],"timeline":['; for(var i = 0;i < ARRKEY[5].length;i++){ if(i!=ARRKEY[5].length-1) MYSTR6 += '"'+ARRKEY[5][i]+'",'; else MYSTR6 += '"'+ARRKEY[5][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[5][index][0])+'
'+yname[5]+' : ' + parseInt(data[5][index][1])+'
'+'竞争率 : '+ parseFloat(data[5][index][0]/data[5][index][1]).toFixed(2); } }; option6.xAxis = { min: xmin[5], max: xmax[5], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option6.yAxis = { min: ymin[5], max: ymax[5], //name:yname[5], type: 'value', 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 } }, }; option6.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[5], stroke:'grey', lineWidth:1 } }; mdata6.counties.forEach(function (country) { var mdata6 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata6.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option6.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata6, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart6.setOption(option6); myChart6.on('click',function(e){ var z = e.value[5].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(data.length>=7){ option7 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR7 = ''; MYSTR7 += '{"counties":["'+ text[6] + '"],"timeline":['; for(var i = 0;i < ARRKEY[6].length;i++){ if(i!=ARRKEY[6].length-1) MYSTR7 += '"'+ARRKEY[6][i]+'",'; else MYSTR7 += '"'+ARRKEY[6][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[6][index][0])+'
'+yname[6]+' : ' + parseInt(data[6][index][1])+'
'+'竞争率 : '+ parseFloat(data[6][index][0]/data[6][index][1]).toFixed(2); } }; option7.xAxis = { min: xmin[6], max: xmax[6], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option7.yAxis = { min: ymin[6], max: ymax[6], //name:yname[6], type: 'value', 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 } }, }; option7.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[6], stroke:'grey', lineWidth:1 } }; mdata7.counties.forEach(function (country) { var mdata7 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata7.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option7.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata7, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart7.setOption(option7); myChart7.on('click',function(e){ var z = e.value[5].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(data.length>=8){ option8 = { animation:ani, grid: { left: 0, bottom: 0, containLabel: true, top: 50 }, dataZoom: { type: 'inside' }, toolbox:{ feature:{ dataView: {readOnly: false}, saveAsImage:{} } }, series: [] }; MYSTR8 = ''; MYSTR8 += '{"counties":["'+ text[7] + '"],"timeline":['; for(var i = 0;i < ARRKEY[7].length;i++){ if(i!=ARRKEY[7].length-1) MYSTR8 += '"'+ARRKEY[7][i]+'",'; else MYSTR8 += '"'+ARRKEY[7][i]+'"],"series":['; } for(var i = 0;i' +xname+' : ' + parseInt(data[7][index][0])+'
'+yname[7]+' : ' + parseInt(data[7][index][1])+'
'+'竞争率 : '+ parseFloat(data[7][index][0]/data[7][index][1]).toFixed(2); } }; option8.xAxis = { min: xmin[7], max: xmax[7], // name:xname, // nameLocation:'end', // nameGap:20, type: 'value', 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 } }, }; option8.yAxis = { min: ymin[7], max: ymax[7], //name:yname[7], type: 'value', 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 } }, }; option8.graphic = { type:'rect', cursor:'default', shape:{ x:0, y:0, width:wid, height:hei }, style:{ fill:BGCOLOR[7], stroke:'grey', lineWidth:1 } }; mdata8.counties.forEach(function (country) { var mdata8 = series.map(function (yearData) { var item = yearData.filter(function (item) { return item[3] === country; })[0]; return { label: { normal: { show: true//item[4] % 20 === 0 && item[4] > 1940 }, emphasis: { position: 'top', show: true } }, name: item[4], value: item }; }); var links = mdata8.map(function (item, idx) { return { source: idx, target: idx + 1 }; }); links.pop(); option8.series.push({ name: country, type: 'graph', coordinateSystem: 'cartesian2d', data: mdata8, links: links, edgeSymbol: ['none', 'arrow'], symbol:'star', edgeSymbolSize: 5, legendHoverLink: false, lineStyle: { normal: { color: '#FF0000', width: 2.5, opacity:1, //curveness:0.9 } }, itemStyle: { normal: { color:COLORS[0], opacity:c_szOpacityP, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, borderType:c_szLineTypeP, shadowBlur:c_szShadowSizeP, shadowColor:c_szShadowColorP, shadowOffsetX:c_szShadowXP, shadowOffsetY:c_szShadowYP } }, label: { normal:{ show:true, textStyle: { color:c_szColorP, fontSize:c_nSizeP, fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, }, position: 'top' }, emphasis:{ show:true, textStyle: { color: 'red', fontWeight:'bold' }, position: 'top' } }, symbolSize: 8, animationDelay: function (idx) { return idx * 400; } }); }); myChart8.setOption(option8); myChart8.on('click',function(e){ var z = e.value[5].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)); } } }) } }