From adaf951a5a068970fed19d39bc92220e45418944 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 6 Jun 2013 08:19:32 +0900 Subject: [PATCH] force y axis min of 0 in reps graph too --- anki/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index d046183da..325508721 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -214,8 +214,8 @@ where lastIvl >= 21 and id > ?"""+lim, (self.col.sched.dayCutoff-86400)*1000) xaxis['max'] = end-0.5 txt += self._graph(id="due", data=data, ylabel2=_("Cumulative Cards"), conf=dict( - xaxis=xaxis, yaxes=[dict(), dict( - tickDecimals=0, position="right")])) + xaxis=xaxis, yaxes=[dict(min=0), dict( + min=0, tickDecimals=0, position="right")])) txt += self._dueInfo(tot, len(totd)*chunk) return txt