Drawing statistical charts using PHP_PHP tutorial

WBOY
Release: 2016-07-20 11:15:25
Original
1014 people have browsed it

How to draw statistical charts using PHP

The first method

Drawing statistical charts using PHP_PHP tutorialadd_data($d1); $gg->add_data($d2); $gg->add_data($d3); $gg->set_colors("ee00ff,dd8800,00ff00"); //Generate curve graph $gg->build("line",0); //Parameter 0 means displaying all curves, 1 means displaying the first one, and so on. //Generate rectangular chart //$gg->build("rectangle","2"); //Parameter 0 means displaying the first rectangle, 1 means displaying the first one, and so on. 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']="No data available for analysis" ( == 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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!