$(function(){ text = text + "-申请量"; $('#input_reverse').change(function(){ var XYName; XYName = c_XAxisName; c_XAxisName = c_YAxisName; c_YAxisName = XYName; if(this.checked==true){ ISRESERVE = 1; concatp(); showChart(); }else{ ISRESERVE = 0; concat(); showChart(); } }) MODALNUM = CARR.length - (data[0][0].split(':').length-1); if(MODALNUM>=1){ for(var i = 0;i=2){ for(var i = 0;i=3){ for(var i = 0;i=4){ for(var i = 0;i=5){ for(var i = 0;i'; } $('#modalb1')[0].innerHTML = html; $('#mybody').click(function(){ $('#btn_cnt').hide(); $('#modalb1').hide(); STEP = 0; }) $('#modalb1 div').mouseenter(function () { $(this).css('color','white'); $(this).css('background','#3098fe'); }) $('#modalb1 div').mouseleave(function () { $(this).css('background','white'); $(this).css('color','black'); }) $('#modalb1 div').click(function () { $('#modalb1').css('display','none'); YTITLE = $(this)[0].innerText.trim(); $('#fig_btn1')[0].innerHTML = YTITLE; for(i = 0;i8){ //LEGENDMODE = false; //$('#input_legend').prop('checked',false); //}else{ // LEGENDMODE = true; // $('#input_legend').prop('checked',true); //} Highcharts.setOptions({ lang: {   printChart:"打印图表", downloadJPEG: "下载JPEG 图片" , downloadPDF: "下载PDF文档" , downloadPNG: "下载PNG 图片" , downloadSVG: "下载SVG 矢量图" , exportButtonTitle: "导出图片" , thousandsSep:'' } }); Highcharts.getOptions().colors = Highcharts.map(COLORS, function (color) { return { radialGradient: { cx: 0.5, cy: 0.3, r: 0.7 }, stops: [ [0, color], [1, Highcharts.Color(color).brighten(-0.1).get('rgb')] // darken ] }; }); function showChart() { if(CARR[Y-1]=='申请量') FF = 0; else FF = 2; pchart = Highcharts.chart('container',{ chart: { type: 'column', margin:[MARGINTOP,MARGINRIGHT,MARGINBOTTOM,MARGINLEFT] }, exporting: { sourceWidth:document.documentElement.clientWidth, sourceHeight:document.documentElement.clientHeight }, title: { align:c_szXAlignT, verticalAlign:c_szYAlignT, text: text, style:{ x:c_szXAlignT, color:c_szColorT, fontSize:c_nSizeT+'px', fontFamily:c_szFamilyT, fontStyle:c_szStyleT, fontWeight:c_szWeightT, } }, xAxis: { categories: arrnamep1, 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] } return c_showX(1,this.value,'high') }, style:{ color:c_szColorX, fontSize:c_nSizeX+'px', fontFamily:c_szFamilyX, fontStyle:c_szStyleX, fontWeight:c_szWeightX, } }, }, yAxis: { min: 0, allowDecimals:false, 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, } }, stackLabels: { enabled: true, style: { fontWeight: 'bold', color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray' } } }, legend:{ enabled:c_bNameL, align:c_szxalignL, layout:c_szLayoutL, verticalAlign:c_szyalignL, padding:parseInt(c_nSizeT)-20+30, itemStyle:{ color:c_szColorL, fontSize:c_nSizeL+'px', fontFamily:c_szFamilyL, fontStyle:c_szStyleL, fontWeight:c_szWeightL, } }, tooltip: { pointFormat: '{series.name}: {point.percentage:.1f}% ({point.y:,.'+FF+'f})
', shared: true }, plotOptions: { column: { stacking: 'normal', dataLabels: { enabled: false }, //showInLegend: LEGENDMODE } }, series: (function(){ var res = []; for(var i = 0;i/g,"-"); mytempename1 = mytempename1.replace(/\|/g,"-"); mytempename1 = mytempename1.replace(/”/g,"-"); //mytempename1 = mytempename1.replace(/,/g,"-"); mytempename1 = mytempename1.replace(/、/g,"-"); mytempename1 = mytempename1.replace(/\n/g,""); mytempename1 = mytempename1.replace(/\;/g,"-"); mytempename1 = mytempename1.replace(/\\/g,"-"); mytempename1 = mytempename1.replace(/\s/g,"-"); mytempename1 = mytempename1.replace(/----/g,"-"); mytempename1 = mytempename1.replace(/---/g,"-"); mytempename1 = mytempename1.replace(/--/g,"-"); //mytempename2 = mytempename2.replace(/\s/g,''); mytempename2 = mytempename2.replace(/\//g,"-"); mytempename2 = mytempename2.replace(/:/g,"-"); mytempename2 = mytempename2.replace(/\*/g,"-"); mytempename2 = mytempename2.replace(/"/g,"-"); mytempename2 = mytempename2.replace(//g,"-"); mytempename2 = mytempename2.replace(/\|/g,"-"); mytempename2 = mytempename2.replace(/”/g,"-"); //mytempename2 = mytempename2.replace(/,/g,"-"); mytempename2 = mytempename2.replace(/、/g,"-"); mytempename2 = mytempename2.replace(/\n/g,""); mytempename2 = mytempename2.replace(/\;/g,"-"); mytempename2 = mytempename2.replace(/\\/g,"-"); mytempename2 = mytempename2.replace(/\s/g,"-"); mytempename2 = mytempename2.replace(/----/g,"-"); mytempename2 = mytempename2.replace(/---/g,"-"); mytempename2 = mytempename2.replace(/--/g,"-"); var isweb2url = '../'+projectName+'/'+projectName+'/'+mytempename1+'/'+mytempename2+'/PP'+'.htm'; window.open(isweb2url); } } } }); } return res; })() }); }