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.