Commit 7f225421 authored by Ryan Herbert's avatar Ryan Herbert

stats_decorator.py use floats for barchart

parent e966f4c1
......@@ -36,7 +36,7 @@ class BarChartDecorator(StatDecorator):
def decorate(self, data):
bars = []
for val in data:
bar_span = SPAN(_style="height: %d%%; width: %d%%" % (val, (1.0/len(data))*100), _title="%d%%" % val, _class="bar")
bar_span = SPAN(_style="height: %f%%; width: %f%%" % (val, (1.0/len(data))*100), _title="%f%%" % val, _class="bar")
bars.append(bar_span)
return DIV(*bars, _class="bar_chart")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment