give the forecast a sensible limit

This commit is contained in:
Damien Elmes 2011-03-30 20:56:15 +09:00
parent b5c8ba7b9f
commit 2d8faa8608

View file

@ -81,8 +81,11 @@ table * { font-size: 14px; }
txt = self._title( txt = self._title(
_("Forecast"), _("Forecast"),
_("The number of reviews due in the future.")) _("The number of reviews due in the future."))
xaxis = dict(tickDecimals=0, min=0)
if end is not None:
xaxis['max'] = end
txt += self._graph(id="due", data=data, conf=dict( txt += self._graph(id="due", data=data, conf=dict(
xaxis=dict(tickDecimals=0), xaxis=xaxis,
yaxes=[dict(), dict(tickDecimals=0, position="right")])) yaxes=[dict(), dict(tickDecimals=0, position="right")]))
txt += self._dueInfo(tot, len(totd)) txt += self._dueInfo(tot, len(totd))
return txt return txt