mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #323 from SebastienGllmt/patch-1
Allow disabling timeTicks
This commit is contained in:
commit
442df9d668
1 changed files with 4 additions and 1 deletions
|
@ -811,7 +811,10 @@ 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'] = {}
|
||||||
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
|
# types
|
||||||
width = self.width
|
width = self.width
|
||||||
height = self.height
|
height = self.height
|
||||||
|
|
Loading…
Reference in a new issue