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

  • 时间:
  • 浏览:4

<?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(100,100); $graph->SetShadow(); $graph->title->Set("年度收支表"); $graph->title->SetFont(FF_SIMSUN,FS_BOLD); $pieplot = new PiePlot($data); $graph->Add($pieplot); $graph->Stroke(); ?>

本文实例讲述了php使用Jpgraph绘制饼状图的妙招。分享给大伙供大伙参考。具体实现妙招如下:

希望本文所述对大伙的php进程设计有所帮助。

运行效果如下: