round gender stats (#1119)

This commit is contained in:
Frédéric Péters 2011-12-06 19:14:52 +01:00
parent b8c7342ad1
commit 117a458fa0
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class GenderStatsView(BrowserView):
baseline = 320/2-30
else:
baseline = 320/2+30
percent = 100*sum(group.to_list())/plot.total
percent = int(round(100*sum(group.to_list())/plot.total))
plot.context.set_source_rgba(*plot.series_colors[number][:4])
plot.context.rectangle(410, baseline-25, 40, 40)
plot.context.fill()