Menu

#74 multiple 0% displayed in pie graphs

open
nobody
None
5
2010-08-27
2010-08-27
Anonymous
No

Dear,

First of all, great job!
I noticed that if there are some 0 (null) values in the $Data this will cause the graph to draw many lines and "0%" signs on the pie.

Here is how i solved it [pChart.class.php on line 2396]:

$Caption = $Value > 0 ? (round($Value * pow(10,$Decimals) * $SplicePercent)/pow(10,$Decimals))."%" : '' ;

I hoped I help you.

Discussion


Log in to post a comment.