pChart 2.x forum http://wiki.pchart.net/forum/ |
|
PIE_VALUE_INSIDE issue, value over value http://wiki.pchart.net/forum/viewtopic.php?f=1&t=40143 |
Page 1 of 1 |
Author: | guasaneri [ Tue Dec 17, 2013 4:14 pm ] | ||
Post subject: | 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));
|
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |