//设置统计图的颜色 一定要在添加到画布之后再设置
$linePlot->SetColor('red');
test.php
$graph = new Graph(600, 400);
/**
* lin直线
* text文本
* int整数
* long对数
* textint
*/
$aAxisType = 'textint';
$graph->SetScale($aAxisType);
//设置统计图的标题
$graph->title->Set('this is a test');
$data = array(0 => 10, 1 => 20, 2 => 30, 3 => 40, 4 => 50, 5 => 12, 6 => 38, 7 => 55, 8 => 100,
9 => 120, 10 => 30, 11 => 54
);
$linePlot = new LinePlot($data);
//设置图例
$linePlot->SetLegend('tuli');
//将统计图添加到画布上
$graph->Add($linePlot);
//设置统计图的颜色 一定要在添加到画布之后再设置
$linePlot->SetColor('red');
$graph->Stroke();