300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > php折线图 饼状图 柱状图的生成实例

php折线图 饼状图 柱状图的生成实例

时间:2023-04-23 08:04:56

相关推荐

php折线图 饼状图 柱状图的生成实例

后端开发|php教程

php折线图、饼状图、柱状图的生成实例

后端开发-php教程

屏幕录制 源码,如何将vscode中全部注释,ubuntu 终端在哪,单个tomcat能抗多少并发,sqlite 最大id,网页设计分设计师和后台操作员吗,阿里云 服务器,对不起您使用的插件不是微赞官方安装的,ext企业前端框架,水爬爬虫子,linux执行php文件,乐速优化王SEO软件,ajax翻页的网站,js网页飘雪特效代码大全,dede模板文件,js上传图片页面上,旅行社会员管理系统,电影点播程序源码lzw

“); document.write(“”); //显示比例数 document.write(“”); document.write(““);}}if(table_type == “B”){var pie = 3.14159265358979;var TempPie = 0;for(var i=0;itable_x + all_width/2) { x3 = x2 + 20; x4 = x3; } else { x3 = x2 – 20; x4 = x3 – 100; } document.write(“”); document.write(“”); document.write(“”); document.write(“”); document.write(““) TempPie += total[1][i]/totalpie; }}}//–>function getdata_and_name2(data,name){var dataArray2 = new Array()var dataArray =data.split(“,”);var nameArray =name.split(“,”);dataArray2[0]=”#0000FF,1,2,3,”+dataArray[0];for(var i=1;i<=dataArray.length-1;i++){dataArray2[i]=dataArray[i]*10;}var total =new Array(nameArray,dataArray2);table2(total,70,980,804,200,1);}function table2(total,table_x,table_y,all_width,all_height,line_no){//参数含义(传递的数组,横坐标,纵坐标,图表的宽度,图表的高度,折线条数)//***************************************************************************************var line_color = "#69f";var left_width = 70;var total_no = total[1].lengthvar temp1,temp2,temp3temp1 = 0;for(var i=1;i<total_no;i++){for(var j=1;j<=line_no;j++){if(temp19){temp2 = temp1.toString().substr(1,1);if(temp2>4){temp3 = (parseInt(temp1/(Math.pow(10,(temp1.toString().length-1))))+1)*Math.pow(10,(temp1.toString().length-1));}else{temp3 = (praseInt(temp1/(Math.pow(10,(temp1.toString().length-1))))+0.5)*Math.pow(10,(temp1.toString().length-1))}}else{if(temp1>4){emp3 = 10; }else{temp3 = 5;}}temp4 = temp3;document.write(“”);for(var i=0;i{document.write(“”);document.write(“”);document.write(“”);document.write(“

php小源码,ubuntu下写入iso,自动进群爬虫,503 php,seo小颜lzw

“);temp4 = temp4 – temp3/5;}document.write(“”);document.write(“”);var tmpStr = “”for(i=1;i<=line_no;i++){var re = /,/g;tmpStr += ",[\"" + total[i][0].replace(re,"\",\"") + "\"]"}tmpStr = tmpStr.substr(1,tmpStr.length-1)var line_code = eval("new Array(" + tmpStr + ")")for(var j=1;j<=line_no;j++){for(var i=1;i<total_no-1;i++){var x1 = table_x + left_width + all_width * (i – 1)/(total_no-1)var y1 = table_y + (temp3 – total[j][i]) * (all_height/temp3)var x2 = table_x + left_width + all_width * i/(total_no-1)var y2 = table_y + (temp3 – total[j][i+1]) * (all_height/temp3)document.write("”);switch (parseInt(line_code[j-1][2])){ case 1: break; case 2: document.write(“”); break; case 3: document.write(“”); break; case 4: document.write(“”); break; case 5: document.write(“”); break; case 6: document.write(“”); break; case 7: document.write(“”); break;}document.write(“”);switch (parseInt(line_code[j-1][3])){ case 1: break; case 2: document.write(“”); break; case 3: document.write(“”); break;}}switch (parseInt(line_code[j-1][3])){ case 1: break; case 2: document.write(“”); break; case 3: document.write(“”); break;}}for(var i=0;i<total_no-1;i++){document.write("”);document.write(“”);document.write(“

“);}var tb_height = 30document.write(“”);for(var i=0;i{document.write(“”);document.write(“

“);document.write(“”);}}function getdata_and_name1(data,name){ var dataArray =data.split(“,”);var nameArray =name.split(“,”);var total =new Array(dataArray,nameArray);table1(total,70,350,20,30,800,100,”A”);}function table1(total,table_x,table_y,thickness,table_width,all_width,all_height,table_type){//参数含义(传递的数组,横坐标,纵坐标,柱子的厚度,柱子的宽度,图表的宽度,图表的高度,图表的类型)//纯ASP代码生成图表函数1——柱状图//***************************************************************************************var tmdColor1 = new Array();tmdColor1[0] = “#d1ffd1”;tmdColor1[1] = “#ffbbbb”;tmdColor1[2] = “#ffe3bb”;tmdColor1[3] = “#cff4f3”;tmdColor1[4] = “#d9d9e5”;tmdColor1[5] = “#ffc7ab”;tmdColor1[6] = “#ecffb7”;tmdColor1[7] = “#97bd00”;tmdColor1[8] = “#009900”;tmdColor1[9] = “#cc3300”;tmdColor1[10] = “#ffcc00”;tmdColor1[11] = “#3366cc”;tmdColor1[12] = “#33cc33”;tmdColor1[13] = “#ff9933”;tmdColor1[14] = “#cccc99”;tmdColor1[15] = “#99cc66”;tmdColor1[16] = “#66ff99”;tmdColor1[17] = “#4f6600”;tmdColor1[18] = “#481000”;tmdColor1[19] = “#7d6400”;tmdColor1[20] = “#173064”;tmdColor1[21] = “#173064”;tmdColor1[22] = “#1a6a1a”;tmdColor1[23] = “#974b00”;tmdColor1[24] = “#78793c”;tmdColor1[25] = “#557e27”;tmdColor1[26] = “#009337”;var tmdColor2 = new Array();tmdColor2[0] = “#00ff00”;tmdColor2[1] = “#ff0000”;tmdColor2[2] = “#ff9900”;tmdColor2[3] = “#33cccc”;tmdColor2[4] = “#666699”;tmdColor2[5] = “#993300”;tmdColor2[6] = “#99cc00”;tmdColor2[7] = “#97bd00”;tmdColor2[8] = “#009900”;tmdColor2[9] = “#cc3300”;tmdColor2[10] = “#ffcc00”;tmdColor2[11] = “#3366cc”;tmdColor2[12] = “#33cc33”;tmdColor2[13] = “#ff9933”;tmdColor2[14] = “#cccc99”;tmdColor2[15] = “#99cc66”;tmdColor2[16] = “#66ff99”;tmdColor2[17] = “#4f6600”;tmdColor2[18] = “#481000”;tmdColor2[19] = “#7d6400”;tmdColor2[20] = “#173064”;tmdColor2[21] = “#173064”;tmdColor2[22] = “#1a6a1a”;tmdColor2[23] = “#974b00”;tmdColor2[24] = “#78793c”;tmdColor2[25] = “#557e27”;tmdColor2[26] = “#009337”;var tb_color = new Array(tmdColor1,tmdColor2);var line_color = “#69f”;var left_width = 70;var length = thickness/2;var total_no = total[0].length;var temp1 = 0;var temp2,temp4,temp4;for(var i = 0;i<total_no;i++){if(temp19){ temp2 = temp1.toString().substr(1,1)if(temp2>4){temp3 = (parseInt((temp1/(Math.pow(10,(temp1.toString().length-1)))).toString())+1)*Math.pow(10,(temp1.toString().length-1));}else{temp3 = (parseInt((temp1/(Math.pow(10,(temp1.toString().length-1)))).toString())+0.5)*Math.pow(10,(temp1.toString().length-1));} } else{if(temp1>4)temp3 = 10; else temp3 = 5;}temp4=temp3document.write(““);document.write(““);document.write(““);switch (table_type){case “A”:var table_space = (all_width-table_width*total_no)/total_no;document.write(““);for(var i=0;i<=all_height-1;i+= all_height/5){document.write("“);document.write(““);document.write(““);document.write(““);document.write(“”);document.write(“

“);temp4 = temp4-temp3/5;}for(var i=0;i<total_no;i++){var temp_space = table_x + left_width + table_space / 2 + table_space * i + table_width * i; document.write("”);document.write(“”)document.write(“”);document.write(“”);document.write(“”);document.write(“

“);document.write(“”);document.write(“

“);}break;case “B”:var table_space = (all_height – table_width * total_no) / total_no;document.write(““);for(var i=0;i<=all_width-1;i +=all_width/5){document.write("“);document.write(““);document.write(““);document.write(““);document.write(“”);document.write(“

“);temp4 = temp4 – temp3 / 5;}for(var i=0;i<total_no;i++){var temp_space = table_space/2 + table_space * i + table_width * i;document.write("”);document.write(“”);document.write(“”);document.write(“”);document.write(“”);document.write(“

“);document.write(“”);document.write(“

“);}}}v\:* { behavior: url(#default#VML) }o\:* { behavior: url(#default#VML) }.shape { behavior: url(#default#VML) }

<?$dataArray="";$nameArray="";$dataArray = "10,20,30,40,50";$nameArray = "一月,二月,三月,四月,五月";echo "getdata_and_name1(‘”.$dataArray.”‘,”.$nameArray.”‘);”;?><?$dataArray="";$nameArray="";$dataArray = "10,20,30,40,50,20,30,40,50,20,30,40,50";$nameArray = "一月,二月,三月,四月,五月,二月,三月,四月,五月,二月,三月,四月,五月";echo "getdata_and_name3(‘”.$dataArray.”‘,”.$nameArray.”‘);”;?><?$dataArray=",12,12,1,5,7,24,40,10,25,45,16,19";$nameArray="1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月";echo "getdata_and_name2(‘”.$dataArray.”‘,”.$nameArray.”‘);”;?>

复制代码

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。