Home > Backend Development > PHP Tutorial > How to use Jpgraph to draw a pie chart in php, phpjpgraph to draw a pie_PHP tutorial

How to use Jpgraph to draw a pie chart in php, phpjpgraph to draw a pie_PHP tutorial

WBOY
Release: 2016-07-13 09:51:15
Original
896 people have browsed it

php uses Jpgraph to draw a pie chart, phpjpgraph draws a pie

This article describes the example of php using Jpgraph to draw a pie chart. Share it with everyone for your reference. The specific implementation method is as follows:

<&#63;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(); 
&#63;>
Copy after login

The operation effect is as follows:

I hope this article will be helpful to everyone’s PHP programming design.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1014420.htmlTechArticlephp uses Jpgraph to draw pie charts, phpjpgraph draws pie. This article tells an example of how php uses Jpgraph to draw pie charts. method. Share it with everyone for your reference. The specific implementation method is as follows...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template