View unanswered posts | View active topics It is currently Thu Mar 28, 2024 10:23 am



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
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));



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

Who is online

Users browsing this forum: No registered users and 3 guests


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: