#为了方便起见,我又做了一个函数来制作柱型图
/*参数说明: 【相关文章:log4j学习(上)】 【扩展阅读:Windows2000高级技巧】$graphdata:百分比数据(y轴) 【扩展信息:《dbXML 程序员手册_ 2.0_20】 $label:x轴标题 $data:实际数据(y轴) $graphwidth:图像宽度 $graphheight:图像高度 $graphscale:高度因子(为$graphheight/100) $graphfont:字体号 $bg;背景颜色值 $text:文本颜色值 $grid:边线颜色值 $bar:柱的颜色值 $bz:备注(不支持中文呀) */ function timage( $graphdata,$label,$data, $graphwidth,$graphheight,$graphscale,$graphfont, $bg,$text,$grid,$bar,$bz) {header("content-type:image/gif");
$image=imagecreate($graphwidth+50,$graphheight+50); $bgcolor= imagecolorallocate ($image ,$bg[0],$bg[1],$bg[2]); $textcolor= imagecolorallocate ($image ,$text[0],$text[1],$text[2]); ... 下一页