Legend division by zero error.
Brought to you by:
nosey
Version: PHP Graphpite 1.2.1 standalone install (not from PEAR.)
If I want to display a Legend from a PieChart Image_Graph throws a
"division by zero" error.
I traced down this error:
/Graph/Plot.php
function _legendSample($x, $y, &$font) { Line: 287
[...]
$point = $this->_getMarkerData($point, $nextPoint, $prevPoint, $i);
[...]
}
In this method calling '$i' variable has no value! (Not initialized.)
Example is attached. (Example is assembled from tutorial and
GraphPite site informations.)
Thanks
Attila Szuts
Example to show error.