JpGraph PHP generated curve pie chart
2016-08-23
0 0 0
no vote
Other
Earn points
Application background
PHP; <?** use JpGraph to generate a graphFigure *3d* /Include_once ("lib/jpgraph.php");Include_once ("lib/jpgraph_pie.php");Include_once ("lib/jpgraph_pie3d.php");$data = array (18, 23, 26, 27, 48, 25, 49, 50, 45, 23, 20, 30); / / analog data$month = array ('Beijing', 'Shanghai', 'Guangdong', 'Tianjin', 'Henan', 'Hebei', 'Zhejiang', 'Shanxi', 'Chongqing', 'Hongkong', '', 'Taiwan', 'other');$graph = PieGraph new (600, 450);$graph-> SetShadow ();$graph-> title-> Set (registration number of regional distribution);$pieplot = PiePlot3D new ($data);$graph-> title-> SetFont (FF_SIMSUN, FS_BOLD);$graph-> legend-> SetFont (FF_SIMSUN, FS_BOLD);$graph-> legend-> SetPos (0.01,0.2,'right','right'); //0.01 distance to the left side of the offset from the top of the two offset 0.2 default to top right$graph-> legend-> SetColumns (1); / / set the legend of a row of display$graph-> legend-> SetLineSpacing (15); / / setphp
生成
曲线图
Related Source Codes
CRMEB open source mall system (including h5 offici
0
0
no vote
PHP source code of CRMEB multi port and multi lang
0
0
no vote
ALLLIGHT music player, adaptive to all mobile phon
0
0
no vote
DSMALL multi-merchant mall system
0
0
no vote
WeChat H5 payment source code
0
0
no vote
No comment