Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
JpGraph PHP generated curve pie chart
no vote
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); / / set
qq:雨点网络
2016-08-23
0
1
No more~