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

Minor problem with pPie.class.php
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=382
Page 1 of 1

Author:  jngeist [ Tue Apr 05, 2011 10:23 pm ]
Post subject:  Minor problem with pPie.class.php

Minor problem with both 2D and 3D ring charts in pPie.class.php as relates to setting inner and outer radii. Based on the description on the wiki (http://wiki.pchart.net/doc.pie.draw2dring.html), I'm led to believe this is a typo.

From lines 868-871, the code reads:
Code:
function draw2DRing($X,$Y,$Format="")
    {
     $OuterRadius   = isset($Format["Radius"]) ? $Format["Radius"] : 60;
     $InnerRadius   = isset($Format["Radius"]) ? $Format["Radius"] : 30;

and, as I understand it, should read
Code:
function draw2DRing($X,$Y,$Format="")
    {
     $OuterRadius   = isset($Format["OuterRadius"]) ? $Format["OuterRadius"] : 60;
     $InnerRadius   = isset($Format["InnerRadius"]) ? $Format["InnerRadius"] : 30;


Same problem exists on line 1068 with draw3DRing. I'm also having some problems with foreach called on non-arrays in draw3DRing, but I'll have to investigate that more later.

Author:  lnf [ Tue Sep 27, 2011 2:57 am ]
Post subject:  Re: Minor problem with pPie.class.php

Good catch. I think this one is just a little subjective.

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