mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Allow disabling timeTicks
This commit is contained in:
parent
c4eca03dd8
commit
a9641e50c6
1 changed files with 4 additions and 1 deletions
|
@ -811,6 +811,9 @@ from cards where did in %s""" % self._limit())
|
||||||
conf['yaxis']['labelWidth'] = 40
|
conf['yaxis']['labelWidth'] = 40
|
||||||
if 'xaxis' not in conf:
|
if 'xaxis' not in conf:
|
||||||
conf['xaxis'] = {}
|
conf['xaxis'] = {}
|
||||||
|
if xunit is None:
|
||||||
|
conf['timeTicks'] = False
|
||||||
|
else:
|
||||||
conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit]
|
conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit]
|
||||||
# types
|
# types
|
||||||
width = self.width
|
width = self.width
|
||||||
|
|
Loading…
Reference in a new issue