This article describes how to use Jpgraph to draw a pie chart in php. The example shows how to use PieGraph to create a pie chart in Jpgraph. For more information, see
This article describes how to use Jpgraph to draw a pie chart in php. The example shows how to use PieGraph to create a pie chart in Jpgraph. For more information, see
This article describes how php uses Jpgraph to draw a pie chart. Share it with you for your reference. The specific implementation method is as follows:
<? Php include ("src/jpgraph. php "); include (" src/jpgraph_pie.php "); $ data = array (400,300,); $ graph = new PieGraph ); $ graph-> SetShadow (); $ graph-> title-> Set ("annual income and expenditure table"); $ graph-> title-> SetFont (FF_SIMSUN, FS_BOLD ); $ pieplot = new PiePlot ($ data); $ graph-> Add ($ pieplot); $ graph-> Stroke ();?>
The running effect is as follows:
I hope this article will help you with php programming.
,