title = title + '-申请量'; $(function(){ $('#input_label').change(function(){ if(this.checked==true){ LABELSHOW = true; loadCharts(); }else{ LABELSHOW = false; loadCharts(); } }) MODALNUM = CARR.length - (data[0][0].split(':').length-1); if(MODALNUM>=1){ for(var i = 0;i' + '
' +(i+1)+ '
'; }else{ html1 += '
' +(i+1)+ '
'; } } var xx = 0; for(var i = 0;i=10) xx = 1; } if(xx==1){ $('#input_legend').prop('checked',false); LEGENDMODE = false; }else{ $('#input_legend').prop('checked',true); LEGENDMODE = true; } // y轴begin concat(); var html = ''; for(var i = 0;i'; } $('#modalb1')[0].innerHTML = html; $('#mybody').click(function(){ $('#modalb1').hide(); STEP = 0; }) $('#modalb1 div').mouseenter(function () { $(this).css('color','white'); $(this).css('background','#3098fe'); }) $('#modalb1 div').mouseleave(function () { $(this).css('background','white'); $(this).css('color','black'); }) $('#modalb1 div').click(function () { $('#modalb1').css('display','none'); YTITLE = $(this)[0].innerText.trim(); $('#fig_btn1')[0].innerHTML = YTITLE; for(i = 0;i=Number(data[i][j].split(':')[Y])) mymin = Number(data[i][j].split(':')[Y]); if(mymax<=Number(data[i][j].split(':')[Y])) mymax = Number(data[i][j].split(':')[Y]); HDATA[i].push(Number(data[i][j].split(':')[Y])); MD5ARR[i].push(data[i][j].split(':')[0]); } } for(var i = 0;i' + 'Y : ' + ARRKEY2[this.y] + '
' + 'Z : ' + this.z; }, style:{ fontSize:fs-5 } }, plotOptions: { series: { dataLabels: { enabled: LABELSHOW, format: '{point.z}', style:{ color:'black', fontWeight:'normal' } } } }, xAxis: { visible:c_bNameX, lineColor: c_szLineColorX,//轴线颜色 lineWidth: c_szLineWidthX,//轴线宽度 gridLineDashStyle: c_szSplitLineTypeX,//网格线线条样式 gridLineWidth: c_szSplitLineWidthX,//网格线宽度 title: { align:c_szLocationX, text: c_XAxisName, style:{ color:c_szColorX, fontSize:c_nSizeX+'px', fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, } }, labels:{ //rotation:c_szXRotate, //旋转角度 formatter:function() { if(this.value.indexOf("-")>-1){ var arr2 = this.value.split("-") this.value = arr2[0] } var ret = "";//拼接加\n返回的类目项 if (this.value.indexOf('|') > -1) { var arr = this.value.split(' | ') ret = arr.join('
') return ret } else { this.value = this.value.replace(" ","") var maxLength = 4;//每项显示文字个数 var valLength = this.value.length;//X轴类目项的文字个数 var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数 if (rowN > 1) { for (var i = 0; i < rowN; i++) { var temp = "";//每次截取的字符串 var start = i * maxLength;//开始截取的位置 var end = start + maxLength;//结束截取的位置 //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧 temp = this.value.substring(start, end) + "
"; ret += temp; //凭借最终的字符串 } return ret; } else { return this.value; } } }, style:{ color:c_szColorX, fontSize:c_nSizeX+'px', fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, } }, categories:ARRKEY1, breaks: [ { from:-10000, to: 0 }, { from:xceiling, to: 10000 } ] }, yAxis: { visible:c_bNameY, lineColor: c_szLineColorY,//轴线颜色 lineWidth: c_szLineWidthY,//轴线宽度 gridLineDashStyle: c_szSplitLineTypeY,//网格线线条样式 gridLineWidth: c_szSplitLineWidthY,//网格线宽度 title: { text: c_YAxisName, align:c_szLocationY, style:{ color:c_szColorY, fontSize:c_nSizeY+'px', fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, } }, labels:{ //rotation:c_szYRotate, //旋转角度 style:{ color:c_szColorY, fontSize:c_nSizeY+'px', fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, } }, categories:ARRKEY2, breaks: [ { from:-10000, to: 0 }, { from:yceiling, to: 10000 } ] }, zAxis: { title:{ text:CARR[Y-1], align:c_szLocationY, style:{ color:c_szColorY, fontSize:c_nSizeY+'px', fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, } }, visible:c_bNameY, lineColor: c_szLineColorY,//轴线颜色 lineWidth: c_szLineWidthY,//轴线宽度 gridLineDashStyle: c_szSplitLineTypeY,//网格线线条样式 gridLineWidth: c_szSplitLineWidthY,//网格线宽度 labels:{ skew3d: true, //rotation:c_szYRotate, //旋转角度 style:{ color:c_szColorY, fontSize:c_nSizeY+'px', fontFamily:c_szFamilyY, fontStyle:c_szStyleY, fontWeight:c_szWeightY, } }, min: mymin, max: mymax, }, legend: { enabled: false }, series: [{ name: CARR[Y-1], colorByPoint: true, borderColor:c_szLineColorP, borderWidth:c_szLineWidthP, dashStyle:c_szLineTypeP, shadow:{ color:c_szShadowColorP, width:c_szShadowSizeP, offsetX:c_szShadowXP, offsetY:c_szShadowYP }, dataLabels: { //enabled: true, //format: '{point.y}', style:{ color:c_szColorP, fontSize:c_nSizeP+'px', fontFamily:c_szFamilyP, fontStyle:c_szStyleP, fontWeight:c_szWeightP, } }, data: MYDATA, events:{ click:function(e){ var x = e.point.x; var y = e.point.y; var z = MD5ARR[x][y]; if(z.trim()!=''){ 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)); } } } } }] }); // Add mouse events for rotation $(chart.container).bind('mousedown.hc touchstart.hc', function (e) { e = chart.pointer.normalize(e); var posX = e.pageX, posY = e.pageY, alpha = chart.options.chart.options3d.alpha, beta = chart.options.chart.options3d.beta, newAlpha, newBeta, sensitivity = 5; // lower is more sensitive $(document).bind({ 'mousemove.hc touchdrag.hc': function (e) { // Run beta newBeta = beta + (posX - e.pageX) / sensitivity; newBeta = Math.min(100, Math.max(-100, newBeta)); chart.options.chart.options3d.beta = newBeta; // Run alpha newAlpha = alpha + (e.pageY - posY) / sensitivity; newAlpha = Math.min(100, Math.max(-100, newAlpha)); chart.options.chart.options3d.alpha = newAlpha; chart.redraw(false); }, 'mouseup touchend': function () { $(document).unbind('.hc'); } }); }); }