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

Reply to topic  [ 1 post ] 
Change color 
Author Message
New pChart user
New pChart user

Joined: Thu Oct 10, 2013 3:28 pm
Posts: 1
 Change color
I have use the sample : Floating 0 sample script

present on this page :

but i have a problem, i want have three column per point like in my upload but the problem is the first and the last column on each point have the same color how can i change that please ?

                            $MyData3 = new pData();
      $MyData3->addPoints(array(x,x,x),Score : 0");
      $MyData3->addPoints(array(x,x,x),Score : 1");
      $MyData3->addPoints(array(x,x,x),Score : 2");
      $MyData3->setAxisName(0,"Nombre de machine");
      /* Create the pChart object */
      $myPicture3 = new pImage(700,230,$MyData3);
      /* Draw the scale  */
      /* Turn on shadow computing */
      /* Draw the chart */
      $settings = array("Floating0Serie"=>"Floating 0","Draw0Line"=>TRUE,"Gradient"=>TRUE, "DisplayPos"=>LABEL_POS_INSIDE,"DisplayValues"=>TRUE,"DisplayR"=>255, "DisplayG"=>255,"DisplayB"=>255,"DisplayShadow"=>TRUE,"Surrounding"=>10);
      /* Write the chart legend */
      /* Render the picture (choose the best way) */


File comment: graph
graph.png [ 17.75 KiB | Viewed 18769 times ]
Thu Oct 10, 2013 3:32 pm
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: