$(function(){ $('#btn_back').click(function(){ $('.highcharts-button-box').click(); }) $('#input_legend').change(function(){ if(this.checked==true){ MYDATA = 1; myData(); loadCharts(); }else{ MYDATA = 0; myData(); loadCharts(); } }) if(data.length==1){ $('#btn_sel').hide(); } $('#charts1').css("height",cheight); $('#charts1').css("width",cwidth); loadCharts(); window.onresize = function(){ $(".warp").css("left",document.body.clientWidth-23); $(".warp").css("top",document.body.clientHeight-25); cheight = document.body.clientHeight-2; cwidth = document.body.clientWidth; $('#charts1').css("height",cheight); $('#charts1').css("width",cwidth); } $("#charts1").click(function(){ var tt = $('.highcharts-button-box')[1]; if(tt){ $('.highcharts-button-box')[1].nextSibling.innerHTML = '返回'; } }); }) //c++参数转换为js参数 var MARGINLEFT = document.documentElement.clientWidth*Number(c_szMarginLeftP.replace('%',''))*0.01; var MARGINRIGHT = document.documentElement.clientWidth*Number(c_szMarginRightP.replace('%',''))*0.01; var MARGINTOP = document.documentElement.clientHeight*Number(c_szMarginTopP.replace('%',''))*0.01; var MARGINBOTTOM = document.documentElement.clientHeight*Number(c_szMarginBottomP.replace('%',''))*0.01; 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参数 //c++参数转换为js参数 //text:null(title) //enabled:true(legend) //xaxis:null(x轴) //yaxis:null(y轴) if(c_bNameT=='0'){ c_bNameT = null; }else{ c_bNameT = text[0]; } if(c_szLocationX=='start') c_szLocationX = 'low'; else if(c_szLocationX=='center') c_szLocationX = 'middle'; else if(c_szLocationX=='end') c_szLocationX = 'high'; if(c_szLocationY=='start') c_szLocationY = 'low'; else if(c_szLocationY=='center') c_szLocationY = 'middle'; else if(c_szLocationY=='end') c_szLocationY = 'high'; //c++参数转换为js参数 for(var i = 0;i