View unanswered posts | View active topics It is currently Sun Jul 21, 2024 10:05 pm

Reply to topic  [ 1 post ] 
PIE_VALUE_INSIDE issue, value over value 
Author Message
New pChart user
New pChart user

Joined: Tue Dec 17, 2013 4:10 pm
Posts: 2
Post 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
foreach($talent_description as $skills){ 
                  $points_array[] .= $skills['points'];
            $MyData->addPoints($points_array, "ScoreA"); 
            $MyData->setSerieDescription("ScoreA","Application A");

            /* Define the absissa serie */
            $MyData->addPoints($points_array, "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));

testing-chart.png [ 5.79 KiB | Viewed 17729 times ]
Tue Dec 17, 2013 4:14 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: