From a9641e50c6cd1de8a707090dd8e2e072e1190461 Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Fri, 16 Aug 2019 01:58:10 +1000 Subject: [PATCH] Allow disabling timeTicks --- anki/stats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index eb0fb9cc2..bac90b39b 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -811,7 +811,10 @@ from cards where did in %s""" % self._limit()) conf['yaxis']['labelWidth'] = 40 if 'xaxis' not in conf: conf['xaxis'] = {} - conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit] + if xunit is None: + conf['timeTicks'] = False + else: + conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit] # types width = self.width height = self.height