From 9875e26e06ecc68c95d633409a7b9fc7969c1471 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 28 Apr 2013 15:38:27 +0900 Subject: [PATCH] make sure y axis starts at 0 https://anki.tenderapp.com/discussions/ankidesktop/793-strange-scaling-in-statistics-bar-bug --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index a82b856b5..7ca0df27a 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -258,7 +258,7 @@ group by day order by day""" % (self._limit(), lim), d = data conf = dict( xaxis=dict(tickDecimals=0, max=0.5), - yaxes=[dict(), dict(position="right")]) + yaxes=[dict(min=0), dict(position="right",min=0)]) if days is not None: conf['xaxis']['min'] = -days+0.5 def plot(id, data, ylabel, ylabel2):