search
Homephp教程php手册使用PHP绘制统计图

使用PHP绘制统计图

Jun 13, 2016 am 11:31 AM
1200300phpusepicturemethodpaintingofdrawstatistics

使用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(,,
Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment