$(function(){ $('#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.documentElement.clientHeight-2; cwidth = document.documentElement.clientWidth; $('#charts1').css("height",cheight); $('#charts1').css("width",cwidth); myChart1.resize(); } }) //c++参数转换为js参数 var PIEMARGIN = 100; if(c_szMarginLeftP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginLeftP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginLeftP.replace('%',''))-30; } if(c_szMarginRightP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginRightP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginRightP.replace('%',''))-30; } if(c_szMarginTopP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginTopP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginTopP.replace('%',''))-30; } if(c_szMarginBottomP!=0){ if(PIEMARGIN>=100 - Number(c_szMarginBottomP.replace('%',''))-30) PIEMARGIN = 100 - Number(c_szMarginBottomP.replace('%',''))-30; } 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参数 var data = ARRKEY1; var ARRNAME1 = ARRKEY1[0].concat(ARRKEY2[0]); var LEGENDMODE = true; var dataLength = data.length; if(typeof TextP=='undefined'||TextP==''){ var MYTEXT = [[],[],[],[],[],[]]; }else{ var MYTEXT = TextP.split('&&'); for(var i = 0;i