
Jaroslav - 2012-01-03 15:35:42
Hi,
this is nice class but when it creates bigger chart and $step in method InternalRendering is real number then the chart contents white line.
For example
$g = new TinyPie(256);
$g->AddValue(50, 'CC0000');
$g->AddValue(5, '555555');
echo $g->GetAsImg();
Fix is simple:
in method InternalRendering a line
$step = (((int)$value[0] / $sum) * 360);
to replace with a line
$step = round ((((int)$value[0] / $sum) * 360));