View unanswered posts | View active topics It is currently Sat Apr 27, 2024 11:34 pm



Reply to topic  [ 2 posts ] 
Minor problem with pPie.class.php 
Author Message
pChart user
pChart user

Joined: Sat Apr 02, 2011 7:23 am
Posts: 6
Post 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.


Tue Apr 05, 2011 10:23 pm
Profile
Regular pChart user
Regular pChart user

Joined: Sun Aug 14, 2011 3:34 pm
Posts: 8
Post Re: Minor problem with pPie.class.php
Good catch. I think this one is just a little subjective.

_________________
Random Facts Little Known Facts


Tue Sep 27, 2011 2:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 8 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:  
cron