lib/chart-candy/builder/donut.rb in chart-candy-0.0.10 vs lib/chart-candy/builder/donut.rb in chart-candy-0.0.11

- old
+ new

@@ -36,10 +36,14 @@ fill_percents end def format_money(value) - sprintf("%0.02f", (value.to_f).round(2)).gsub('.', ',') + ' $' + if value > 99 + "#{value.round} $" + else + sprintf("%0.02f", (value.to_f).round(0)).gsub('.', ',') + ' $' + end end def hole @chart[:hole] end