![](./styles/avalon/theme/images/spacer.gif) |
|
Page 1 of 1
|
[ 7 posts ] |
|
Author |
Message |
tatorface
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) pie chart color bleed
![Image](http://img109.imageshack.us/img109/7125/errorei.jpg) Using latest release 2.0.7. Created a pie chart that accidentally went off the bottom of the image area without a border around the image. The color of that slice (yellow) then bled all the way to the bottom left of the image. I would imagine that this would not be a big deal since you WANT your pie chart fully visible and not hanging off the edge of your image, just thought I would throw it up here. ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
|
Thu Dec 16, 2010 11:41 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
mykchan
Regular pChart user
Joined: Mon Dec 13, 2010 7:54 am Posts: 13 Location: Gold Coast, Australia
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
any chance you can post the exact code for your graph?
it'd be good to rule out differences in versions of php & GD as a possible culprit.
|
Fri Dec 17, 2010 2:52 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
I believe that it's a bug with the imagefilledpolygon() function of the GD library, I'll try to catch it.
|
Fri Dec 17, 2010 9:30 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
Guest
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
mykchan wrote: any chance you can post the exact code for your graph?
it'd be good to rule out differences in versions of php & GD as a possible culprit. Here ya go. Not much of a departure from the examples... Code: /* Create and populate the pData object */ $MyData = new pData(); $MyData->addPoints($count_array,"ScoreA"); $MyData->setSerieDescription("ScoreA","Application A");
/* Define the absissa serie */ $MyData->addPoints($pm_array,"Labels"); $MyData->setAbscissa("Labels");
/* Create the pChart object */ $myPicture = new pImage(348,180,$MyData); $myPicture->drawGradientArea(0,0,347,179,DIRECTION_HORIZONTAL,array("StartR"=>220,"StartG"=>220,"StartB"=>220,"EndR"=>255,"EndG"=>255,"EndB"=>255,"Alpha"=>100)); $myPicture->drawGradientArea(0,0,348,23,DIRECTION_VERTICAL,array("StartR"=>58,"StartG"=>58,"StartB"=>58,"EndR"=>58,"EndG"=>58,"EndB"=>58,"Alpha"=>100));
/* Add a border to the picture */ $myPicture->drawRectangle(0,0,347,179,array("R"=>0,"G"=>0,"B"=>0));
/* Write the picture title */ $myPicture->setFontProperties(array("FontName"=>"fonts/Forgotte.ttf","FontSize"=>18)); $myPicture->drawText(88,21,"E-Imports Open Projects",array("R"=>255,"G"=>255,"B"=>255));
/* Set the default font properties */ $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>10,"R"=>80,"G"=>80,"B"=>80));
/* Enable shadow computing */ $myPicture->setShadow(TRUE,array("X"=>2,"Y"=>2,"R"=>150,"G"=>150,"B"=>150,"Alpha"=>100));
/* Create the pPie object */ $PieChart = new pPie($myPicture,$MyData); /* Draw one AA pie chart */ $myPicture->setFontProperties(array("FontName"=>"fonts/CALIBRI.TTF","FontSize"=>10)); $PieChart->draw2DPie(170,100,array("Radius"=>38,"DrawLabels"=>TRUE,"Border"=>TRUE));
/* Render the picture (choose the best way) */ $myPicture->autoOutput("pictures/example.drawPieLegend.png");
|
Fri Dec 17, 2010 5:02 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
tatorface
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
PHP Version 5.2.6 GD Version bundled (2.0.34 compatible)
|
Fri Dec 17, 2010 5:05 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
protectedproof12
New pChart user
Joined: Fri Mar 23, 2012 2:36 am Posts: 1 Location: Cebu, Philippines
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
_________________ Waterproof spray
|
Fri Mar 23, 2012 3:01 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
shelly2222
New pChart user
Joined: Thu Apr 19, 2012 2:14 pm Posts: 1
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: pie chart color bleed
PHP Version 5.2.6 GD Version bundled (2.0.34 compatible)
_________________ mcse ,mcts ,70-640 ,70-643 ,
|
Thu Apr 19, 2012 2:16 pm |
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 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
|
|
![](./styles/avalon/theme/images/spacer.gif) |