Commit b2fa2769 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil

stats_decorator.py: hack for full height genescan, even when no bar is to 100%

parent 5d3374aa
......@@ -53,6 +53,10 @@ class LabeledBarChartDecorator(BarChartDecorator):
style += ";min-height: 1px"
bar_span = SPAN(_style=style, _title="%s" % t[0], _class="bar")
bars.append(bar_span)
# Last bar, to have a full height
bars.append(SPAN(_style="height: 100%; visibility: hidden;", _class="bar"))
return DIV(*bars, _class="bar_chart")
class GenescanDecorator(LabeledBarChartDecorator):
......
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