php动态绘制曲线图

php的image函数不知道可以不。我是一菜鸟,对image函数一窍不通,就画过饼图
我要做一个网校,要求每个学生的每次成绩动态绘制出曲线图,如果可以请告知方法,解决了添加100分
---------------------------------------------------------------

 1   
 2Header("Content-type: image/gif");   
 3$im = imagecreate(400,30);   
 4$black = ImageColorAllocate($im, 0,0,0);   
 5$white = ImageColorAllocate($im, 255,255,255);   
 6imageline($im, 1, 1, 350, 25, $black);   
 7imagearc($im, 200, 15, 20, 20, 35, 190, $white);   
 8imagestring($im, 5, 4, 10, "Graph TEST!!", $white);   
 9ImageGif($im);   
10ImageDestroy($im);   

---------------------------------------------------------------

目前见到的最好的类
http://www.aditus.nu/jpgraph/

Published At
Categories with Web编程
comments powered by Disqus