Home > php教程 > php手册 > body text

使用PHP绘制统计图

WBOY
Release: 2016-06-13 11:31:13
Original
986 people have browsed it

使用PHP画统计图的方法

第一种方法 

add_data($d1); $gg->add_data($d2); $gg->add_data($d3); $gg->set_colors("ee00ff,dd8800,00ff00"); //生成曲线图 $gg->build("line",0); //参数0表示显示所有曲线,1为显示第一条,依次类推 //生成矩形图 //$gg->build("rectangle","2"); //参数0表示显示第一个矩形,1也为显示第一条,其余依次类推 = 300 = 300 = 0; = 10; = 0; =0; =0; =(); =(); =(255,255,255); =(192,192,192); =(0,0,255); =(255,0,0); =(0,0,255); =(200,200,255); = (138,138,120); = (30,30,30); = ("ee00ff","dd8800","00ff00","104E8B" ; ; = ''; = '' add_data(, = 0(!( = (!() or (->array_error['add_data']="没有可供分析的数据" ( == 0 || (, -> = (->->array_data[] = set_img(,->graphwidth = ->graphheight = set_height_num(->height_num= get_RGB(){ =(>>16) & 0xff=(>>8) & 0xff=() & 0xff ((,, set_color_bg(,,->colorBg=(,, set_color_Grey(,,->colorGrey=(,, set_color_Blue(,,->colorBlue=(,, set_color_Red(,,->colorRed=(,, set_color_DarkBlue(,,->colorDarkBlue=(,, set_color_LightBlue(,,
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template