メソッド draw3DPie では、サイズを定義することはできず、グラフを配置することしかできません。より大きな画像 (pImage) を定義すると、グラフの背景だけが増加します。どうすれば大きなパイを手に入れることができますか?
1693 次
2 に答える
3
$PieChart->draw3DPie(150,100,
array("Radius"=>80,
"DrawLabels"=>TRUE,"DataGapAngle"=>10,
"DataGapRadius"=>6,"Border"=>TRUE));
"Radius"=>80
数値を変更してサイズを調整します
クレジットはstlfanに行きます
于 2014-04-12T03:24:59.740 に答える
0
最初に PImage のサイズを調整し、次に drawFilledRectangle を調整し、次に円グラフの半径を変更する必要があります。
//Change the first 2 values: 1024 and 720:
yPicture = new pImage(1024,720,$MyData);
//Then the 700 and 450 values:
$myPicture->drawFilledRectangle(0,0,700,450,$Settings);
//Then:
$PieChart = new pPie($myPicture,$MyData);
$PieChart->draw3DPie(350,200,array("Radius"=>140,"DrawLabels"=>TRUE,"LabelStacked"=>TRUE,"Border"=>TRUE));
//Then the 350 and 200 are the position in the screen, the radius is the size of the pie.
于 2014-06-16T23:20:30.397 に答える