solution to pie chart filling problem
Status: Beta
Brought to you by:
ayashisunyday
When I created pie charts most of the times wasn't completely filled. This is the effect of rounding errors which can be solved by adjusting the step size in the /* Process pie slices */ loop. I made 2 adjustments in pChart.class to solve the problem:
1. The step of the loop is set to 0.5. Change this to 0.15 or lower => for($iAngle=$Angle;$iAngle<=$Angle+$Value*$SpliceRatio;$iAngle=$iAngle+.15)
2. Find and replace all the values for pi from 3.1418 to it's correct value 3.1416 (probably little effect)