php使用Jpgraph绘制饼状图的方法

<?php include ("src/jpgraph.php"); include ("src/jpgraph_pie.php"); $data = array(19,23,34,38,45,67,71,78,85,87,90,96); $graph = new PieGraph(400,300); $graph->SetShadow(); $graph->title->Set("年度收支表"); $graph->title->SetFont(FF_SIMSUN,FS_BOLD); $pieplot = new PiePlot($data); $graph->Add($pieplot); $graph->Stroke(); ?>

运行效果如下:

php使用Jpgraph绘制饼状图的方法

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/59578d32c0ecb3ab327c3a8936a27368.html