pChart 2.x forum
http://wiki.pchart.net/forum/

Dealing with Percentages under 1% for Pie Charts
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=200
Page 1 of 1

Author:  stlfan [ Tue Feb 08, 2011 10:41 pm ]
Post subject:  Dealing with Percentages under 1% for Pie Charts

Hello, I have just started to use pCharts and I ran across an issue that I was going to see if anybody had a suggestion to. I was trying to create a pie chart and noticed that if my results had slices that were under 1% of the pie, that they all ran together and the labels that were created overlapped each other. The total number of slices I had for this chart were 20, and what ended up happening was that i had about 3 slices that had slices that were over 1%, but the concentration of the slices was percentages under 1%. I was just trying to see if there was a solution for this problem. Thanks for any suggestions that you may have.

Author:  stlfan [ Wed Feb 09, 2011 6:12 pm ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

i was just adding this reply to also include my image that is being created for this issue, I was not sure if this would help clear up what I was referring to.

Attachments:
File comment: this is the image that I am referring to in regards to the data values, i have 20 that should be included in this graph. I hope this helps to give a better idea of what I am talking about
pie_graph.png
pie_graph.png [ 15.3 KiB | Viewed 9687 times ]

Author:  jean-damien [ Wed Feb 09, 2011 7:48 pm ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

Hi

I've modified the pie chart label support already (this will be included in the next sub release). You can also try to play with the DataGapAngle and DataGapRadius parameters.

JD.

Attachments:
example_draw2DPie_labels.png
example_draw2DPie_labels.png [ 21.1 KiB | Viewed 9683 times ]

Author:  stlfan [ Wed Feb 09, 2011 8:37 pm ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

so in regards the modifications that you were making, will it fix the issue that I am having and if so, do you know when the next sub release will be out. I also noticed on the label at the top, it only shows the first 8, do you know if that is a limitation in regards to the number it will show, if i need at least 20. I think there my have been another post on that. I will take a look. Thanks for your help. So far with just starting out with this library, i really enjoy it.

Author:  richc1977 [ Fri Feb 18, 2011 7:04 pm ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

You get a similar problem when using the values on the pie chart, see below.

Will your new positioning allow you to set the labels on the outside of the pie?

Attachments:
chart.builders.php.png
chart.builders.php.png [ 68.54 KiB | Viewed 9648 times ]

Author:  jngeist [ Wed Apr 06, 2011 3:24 am ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

richc1977 wrote:
You get a similar problem when using the values on the pie chart, see below.

Will your new positioning allow you to set the labels on the outside of the pie?


You can do this already--just add 'ValuePosition' => PIE_VALUE_OUTSIDE to your Format array for draw3DPie(). (Or draw2D, whichever.)

http://wiki.pchart.net/doc.pie.draw2dpie.html

Edit: Just saw the date of your post. s/already/now. :)

Author:  richc1977 [ Tue Apr 12, 2011 4:30 pm ]
Post subject:  Re: Dealing with Percentages under 1% for Pie Charts

I'll give it a go in the next few days to see how it all goes

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/