PIE_VALUE_INSIDE issue, value over value
I created a dinamic pie chart, I need the values inside each slice, but my problem is that is setting a value over another value.
The image attached is the result of this code,
Hope somebody can help me
Code:
foreach($talent_description as $skills){
if($skills['skill']){
$points_array[] .= $skills['points'];
$i_counter_point++;
}
}
$MyData->addPoints($points_array, "ScoreA");
$MyData->setSerieDescription("ScoreA","Application A");
/* Define the absissa serie */
$MyData->addPoints($points_array, "Labels");
$MyData->setAbscissa("Labels");
/* Create the pChart object */
$myPicture = new pImage(220, 250, $MyData, TRUE);
/* Create the pPie object */
$PieChart = new pPie($myPicture, $MyData);
$PieChart->draw2DPie(105, 100, array("Border"=>TRUE, "WriteValues"=>TRUE, "ValueR"=>0, "ValueG"=>0, "ValueB"=>0, "ValuePosition"=>PIE_VALUE_OUTSIDE, "DrawLabels"=>FALSE));