How to draw statistical charts using PHP
The first method

add_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=(,,