PHP uses jpgraph to draw a pie chart, phpjpgraph the pie
This example describes how PHP uses Jpgraph to draw a pie chart. Share to everyone for your reference. The implementation method is as follows:
<?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 ("Annual balance sheet"); $graph->title->setfont (Ff_simsun,fs_bold); $pieplot = new Pieplot ($data); $graph->add ($pieplot); $graph->stroke ();?>
The results are as follows:
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1014420.html www.bkjia.com true http://www.bkjia.com/PHPjc/1014420.html techarticle PHP uses jpgraph to draw a pie chart, phpjpgraph to draw a pie. This article explains how PHP uses jpgraph to draw a pie chart. Share to everyone for your reference. The concrete implementation method is as follows ...