img->SetImgFormat("jpeg"); //画像の種類を明示的に指定する。 //SetScaleなし $graph->title->Set("Pie Example"); //X軸目盛はない //軸のタイトルはない //軸のタイトルはない $pp1 = new PiePlot($ydata); //$pp1->SetSize(0.4); $pielbl = array("Jan\n%.1f%%", "Feb\n%.1f%%", "Mar\n%.1f%%","Apr\n%.1f%%", "May\n%.1f%%","Jun\n%.1f%%"); $pp1->SetLabels($pielbl); $pp1->SetLegends($xdata); $pp1->SetTheme("pastel"); //"earth","pastel","sand","water" $graph->Add($pp1); //$graph->Stroke("./tmp/samplepieplot.jpg"); $graph->Stroke(); ?>