円グラフ<?php require("src/jpgraph.php"); require("src/jpgraph_pie.php"); $graph=new PieGraph(300,200,"auto"); //mb_internal_encoding('SJIS'); $title = mb_convert_encoding("JpGRAPHの日本語化","UTF-8","SJIS"); $graph->title->SetFont(FF_PMINCHO); $graph->title->Set($title); $data=array($_POST['p1'],$_POST['p2'],$_POST['p3'],$_POST['p4'],$_POST['p5']); $plot=new PiePlot($data); $graph->add($plot); $graph->Stroke(); ?> |