2014-02-26 1 views
0

draw3DPie 메소드는 크기를 정의하는 것이 아니라 그래프를 배치 할 수있게 해줍니다. 더 큰 이미지 (pImage)를 정의하면 차트의 배경 만 증가합니다. 큰 파이를 얻으려면 어떻게해야합니까?pChart에서 원형 크기를 늘리는 방법

답변

1
$PieChart->draw3DPie(150,100, 
        array("Radius"=>80, 
        "DrawLabels"=>TRUE,"DataGapAngle"=>10, 
        "DataGapRadius"=>6,"Border"=>TRUE)); 

"Radius"=>80 

변경 번호는

신용 당신이 당신은 당신의 파이 차트의 반경을 수정 한 다음 PImage의 drawFilledRectangle의 크기를 조정해야

0

먼저 stlfan 간다 크기를 조정합니다.

//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.